One think that really helps me is my mindfulness practice. There is lots of information, books and classes out there on how to do mindfulness. It takes a while and it is hard work but you can learn how to recognize your unhealthy thoughts and detach from them before they become a run away train. You can literally rewire your brain and move back to a healthy place again.
Your friend,