You can take psychotherapy for it, in which normally we talk regarding your overthinking problems in details, help you to manage through changing your behaviour and thought problems slowly overtime..
Consult Psychiatrist or psychologist for therapy. You can take it online or offline whatever convenient to you..
Next Steps
Consult for therapy- Cognitive behaviour therapy to psychiatrist or psychologist