ROCD but not the same thread of intrusive thoughts as yours. Still extremely distressing and difficult though. I have found a way to make it a lot more manageable though. It helps to do some reading as the more you understand the better stemmed you are.
Basically, it's not your thoughts that are scary, it's the fact that you have (unintentionally of course) trained your body to have a fearful reaction to these thoughts. Every time you have one of the thoughts and feel anxious, you are reinforcing the fear and making it worse. Trying to explain away these thoughts, reason with them or confess them also only makes them more powerful as we are giving into our compulsions.
Something I read, that has worked for me but is very difficult is this. When a thought occurs, rather than fight it in any way, allow it to be. Accept that the thought is there and concentrate only on your breathing until you begin to calm. You will probably need to do this multiple times with every intrusive thought (just think how many times you've had the thought and become anxious!). But the idea is that you are retraining your brain to have no reaction to these thoughts rather than the anxious reaction it is used to producing. It won't stop the thoughts occurring but the idea is that eventually, you will have no anxious reaction associated with them which means they will be as fleeting as any other thought (eg. "Ooh I might record Eastenders" or something equally as random!)
As I say, it's very difficult because you have to allow yourself to become anxious which is the opposite of what your body wills you to do. And, as with any recovery, it is not a complete fix, it's an up and down process. All I can say is that it's been the most effective thing I've tried so far. I still have good and bad periods but I find it much easier to stop a full blown anxiety attack and compared to how I have been it's a lot more controlled. I imagine that the longer I practice this, the easier it will get.
Most importantly, if you feel you're struggling, there's no shame in medication. I took Sertraline and for me it worked wonders. I only stopped due to pregnancy and may continue after DC2 is born if I feel I need to.
Good luck