Study Stoicism, it’s a mental health life philosophy that will see you through just about anything whilst maintaining your inner peace and wellbeing by allowing you to use simple rules and ideas to promote inner happiness regardless of external events.
Buddhism is in many ways similar, but stoicism has the added bonus of being a system of thought that can be applied independently of any religious overtones.
There’s loads of modern day stoic videos on youtube and some great sites out there to start you off.
Stoic practice is instrumental in the development of modern day clinical practices for mental health such as cognitive behavioural therapy (CPT). It’s an old discipline but it has a long reach through time. I practice stoicism and it’s changed my life immeasurably for the better.