Hi, I suffer with health anxiety so not really the same as pure 'o' , but still similar in their obsessive characteristics.
The fact that you are totally freaked out by your thoughts is proof enough that you are far too 'overly' sane to carry them out.
I found this info which should be of some help:
The thoughts are just an obsession - they are just like when you meet someone you fall head over heels for, you think about and talk about that person 24/7 which is an obsession right?? so really its just the same - the only difference is that with these thoughts you would experience pleasant feelings like happiness, whereas your thoughts (harming yourself or others) make you experience anxiety / unpleasant feelings, which makes you fearful of these thoughts.
You can learn to laugh at your thoughts and see them as just anxiety playing tricks on you, this will remove your fear of them ...which in time will make them fade and eventually stop....they are all 'what if thoughts' heightened by your fear of them.
so loose the fear and the thoughts will be lost......you will never carry any of them out.....so stop worrying