Eventually I think the best coping mechanism is a hobby. Your interests will always nurse you back to joy. Reading, writing, playing a sport - find something that brings joy, then spend enough time nurturing it. Rely on it to always help you find your way back.