Hi,
I understand that you want help overcoming the obsessive thoughts and compulsive behaviors
The two main treatments are psychotherapy and medications , treatment is most effective with a combination of these.
Contact a Psychologist.
What you can do to regain control of your thoughts and actions is to recognize the triggers—the thoughts or situations, Keeping track of your triggers can help you anticipate your urges. And by anticipating your compulsive urges before they arise, you can help to ease them , you can learn to resist the urge to complete your compulsive behaviour. The more often you practice, the quicker your progress will be.
Psychotherapy will guide you through and help you to manage this after evaluating your symptoms.
Next Steps
Consult a Psychologist
Health Tips
Make regular exercise a part of your routine.
Eat a healthy, balanced diet.
Sleep is important.