Found in 1 comment on Hacker News
Meditate, do Cognitive Behavior Therapy, exercise, sleep better, eat better, and cultivate relationships with people. Generally, be more present.

Short book on meditation: https://www.amazon.com/Sit-Like-Buddha-Pocket-Meditation/dp/...

Longer book: https://www.amazon.com/Mind-Illuminated-Meditation-Integrati...

Also, try some guidelines to help you choose more intentionally when and how to analyze things. Is it no topic is worth thinking through all outcomes? Or, important topics are worth it, and they are x, y and z? Or, I can do that type of thinking only an hour a day, from 7-8pm? Once a week? A therapist and trial and error can help you figure out what works for you.

Have a counterfactual behavior that you'll do when you notice you're analyzing when you didn't intend to. E.g. if I notice I'm thinking through scenarios, I'll acknowledge that, then focus on my breath.

Fresh book recommendations delivered straight to your inbox every Thursday.