This is a hard question for me to answer because although I get them pretty often, I never really have to deal with them. When I catch myself having intrusive thoughts I just think "yikes" and move on with my life. The only real way to deal with them in my experience is to accept that they will happen and not let them affect you too much. They suck......
2 reply