Hi! I can see how such thinking would be disconcerting. Please remember that these ideas were proposed by philosophers--and frankly, I think they had little merit.
We'll have to see if anyone else responds and says he/she has gone through the same thing.
I am thinking, though, that talking to a therapist about these intrusive thoughts would be helpful. I suggest you try that approach.