Decent physicians recommend exercise among other preventative measures to reduce the likelihood of emergencies.
Therapists will likewise encourage you to build up resilience so that "a relationship ended" is not a crisis, and also build support networks of real people who can really come visit you when you need urgent support.
There are also, of course, crisis hotlines.