This sounds like pretty common OCD. I get intrusive thoughts all the time which terrify me and sometimes ruin my entire day. I found labeling them as “intrusive thoughts” help when they come in and help distance the thoughts from who you are as a person. Remember that you are not alone.