Honestly, as a fellow person who's going through a lot right now, what keeps me sane is self-reassurance and affirmations. It's a learned behavior, and I understand a lot is easier said than done. But ultimately you will always have yourself, so you need to be patient and kind to your mind. Treat yourself as you would a good friend or family member. Again, it's easier said than done, but practice makes perfect, I promise you that. Take it one day at a time. Believe that everything happens for a reason. Even if things look bleak, a door always closes for another to open. If you feel isolated, finding someone you trust and reaching out to them for consolation can be cathartic, whether it be a human or a pet. If all else fails, Lexapro is pretty damn good, too.