Just having an 'emotional support' discussion with a friend who got himself into a situation and is panicking, and I'm gonna say the same thing here that I said to him in case someone needs to hear it;
If you are in mental distress, you are excused from everything and do not need to 'conform to societal expectations'. You do not need to excuse yourself from whatever situation you're in, you can just leave. It's okay. The people who love you will understand and those that don't don't matter.