The thought life is comprised of the elements which make up your insides, kind of like a Pixar movie but probably not as cute. Sorry to say there aren’t little characters pushing the buttons and pulling the levers. You are in charge of your thoughts, imagination, and feelings. But you are not alone.
“A nun I know once told me she kept begging God to take her character defects away from her. After years of this prayer, God finally got back to her: I’m not going to take anything away from you, you have to give it to Me.”
God will help you through this but He will not override your free will because to do so is to override your ability to chose the greatest cure to loneliness and the reason we exist in this world — love. So you have to give him the authority to help you. And He will.