Harm OCD
You are flooded with thoughts of hurting someone you would never want to harm, and the more horrifying the thought, the more you scramble to prove you are safe. The fear is not that you want to do it. It is that you cannot stand the uncertainty of not being able to guarantee you never would.
Read more about Harm OCD