I
Go to bed
[NeedAdvice] How to stop obsessing over past mistakes? : getdisciplined
You can then disengage from the thoughts by doing something like going for a walk or calling a friend.
Many of the counselors at BetterHelp specialize in treating anxiety disorders, including overthinking disorder.