Hi av88,
just thought I'd let you know that I've had the same experience as you. I started having intrusive thoughts around this very topic, as well as awful thoughts of animal torture, and thinking I was racist. It's incredibly frightening and I completely sympathize. I haven't been diagnosed with OCD, but I do wonder if this is what's causing it. I hope you can work through this with a therapist