I had these sorts of issues, too. The true answer to overthinking isn't to stop overthinking, of course. The true answer is to realize that overthinking is a symptom but not the cause, and so you need to find the root cause and treat that instead.
Just imagine you have some meter in your mind somewhere, not sort of unlike an HP bar, that measures how you're doing mentally. There are some actions you can do to replenish this bar, and some that will deplete it. If you find yourself overthinking constantly, it's possible that that bar is quite depleted. However, remember, it's a symptom of a low bar. Telling it to go away won't actually go away. You can also do a self-inventory to see how you're doing on replenishing it by checking to see how much you overthought on a given day.
Everyone has their own things that replenish and deplete from this reservoir. I personally like hanging out with friends and exercising, but your mileage may vary. Other people like meditating, or cooking, or walking. It's pretty crucial to remember, though, that your current source of anxiety is probably just a red herring.