I came up with mine by starting with a random title generator 
Then, if you have a general sense of how your story is going to go, try and fit the themes of the story into that “blueprint” that the generator gave you.
I also like to pull from my favorite books. I find that classic books put the plot twist or the biggest plot device as the title so you could do that. Or you could do a catchphrase that the main character always says (if they have one and its "important) or you could do pun that applies if its a lighthearted story because I do think that a title should match the tone of the story.
Thats all that I got lol. Hopefully this is helpful!