I truly hope it helps you like it helped me.
I have suffered with thoughts I didn't understand, didn't want and that made me feel like I might be 'bad'. I couldn't understand it because I believe myself to be a good person but the thoughts were not good.
I have dealt with this as long as I can remember.
But it all got worse when I had my first child who I adored but these thoughts were utterly terrifying.
I got through that and then recently had to take medication that altered hormone levels. This is when I suffered a huge panic attack and the thoughts overtook my control of them. I was in an agitated state, scared of being alone, scared of being with my children, not sleeping not eating.
Please be aware that pregnancy and birth and hormonal changes make all of this much worse.
Only at this point did I call doctor, I have never done so before as I could not imagine telling anyone about these thoughts.
The doctor put me on beta blockers which did help calm my body allowing me to sleep etc and turning off the fight or flight adrenaline.
The book is what helped my mind and makes me live without fear of going back into that state again.
I am not on any medication now and if I ever feel unsettled or worried I read a bit of the book again and I am totally ok.
I wish I had been more educated on this subject when I was young and not spent alot of my life mistrusting my own mind.
Sorry my reply is so long, I just want to repeat what the other posters are telling you. You are really, really not alone and it will get better.