Another important part of not self-sabotaging is remembering your long term goals. It's hard to reason with emotional mind, but try to tap into Wise Mind - the logical part that sees beyond the problem and that anticipates how your reaction will impact you - not just now, but in terms of your long term goals.
Also, think about how your potential actions fit in with your values - of the type of person you are or that you want to me.
All of these steps have helped me to stop destroying my life when I'm in an emotional crisis.
What works for you?
What skills have you applied to help you keep it together in times of great distress?
Thanks for reading.