Obsessive-compulsive disorder (OCD) is an anxiety disorder. There are no magic solutions, but there are options to get better. It takes a lot of strength to start the healing process, but it’s not impossible.
Let’s go over some points that may help you gain ground over OCD:
It’s not your fault. Consider obsessive thoughts, images, and impulses as something that doesn't belong to you, but to the OCD. They're symptoms, identify them and recognize them as such.
You're the one in charge. Recognise and identify compulsive behaviors when they occur.
Unmask magical thinking. Obsession tells you that if you don't repeat a phrase or touch the table three times, disaster can occur. You'll have to expose it as false to get better. It won't be easy, but with the help of the people around you, you can do it.
Possibility vs. probability. This is a fundamental point. Many things are possible and, at the same time, almost completely improbable. Is it possible for me to die of a heart attack within the next 24 hours? It's possible, but is it likely? No. I’m healthy and I never had chest pains, and my blood pressure is fine. It wouldn't make sense for me to obsess over something so unlikely.
Alleviate the anxiety. You can alleviate the anxiety that comes from having an obsessive thought in two ways. One is the compulsion, which relieves you but strengthens the OCD circuit. You will need to perform it every time, and perhaps more and more. The other way, the best, is to resist. Let the anxiety flow, don't give it so much importance, and it will decline on its own. That's the way to start gaining ground on OCD.
Seek Professional Help. OCD doesn't resolve without treatment; otherwise, it becomes chronic. It is important to seek help as soon as you become aware that the symptoms begin to affect your quality of life.
Watch out for the Internet! Don't go on Internet forums indiscriminately. If the objective is to look for information to calm your anxiety, it is most likely that, in this case, the remedy is worse than the illness.