I give up and I want to quit but idk the steps
I've been having on and off mental break downs the entire week. Basically the last three times I was like this was when I was bullied relentlessly in high school for an entire by another girl who wouldn't leave me alone online and in person, while my other friends were mostly bystanders, sending a signal to my brain it was justified. The second was when I had a huge family trauma and wasn't sleeping for months while completing my master's with an extra course. The third was at this same work place, with some of the same people who are bringing me down, but because I'm such a strong performer I was able to get the broken system they wanted to work, temporarily alleviating the endless frustration but forever I'm left with a crappy system that is so precarious people are constantly freaked out by it and I'm constantly doing damage controls. The people who want the system are higher up and won't change their mind about it.
I'm really deeply in crisis, I want to resign on monday. I feel like it's impulsive, but i've been there for years, I've legitimately lost hundreds of hours of sleep over this job, gave up dating, and basically can't not treat myself in the rare moments of my spare time to feel better (i'm talking seeing friends and taking classes. Feels ludicrous and awful). I can't bring myself to try apply to other jobs because 1) my confidence is so low because of how a lot of people treat me and past life experiences, so I constantly feel like this is as good as it gets 2) my skills have rotted maintaining our system and 3) I'm so exhausted in my spare time and spending so much trying to "heal" from work.
It's been a rollercoaster, half the company sees me as a wonderful person and high performer, the others nitpick me to death and are aggressive. I've made some genuine mistakes worthy of criticism but generally am a good worker.
I can't figure out if I'm supposed to take a leave or just quit. I know quitting kills my chance to get EI, severance etc and a leave would have a small amount of money while I'm on it but I no longer feel like life is worth living? I want to see if I can build my life in any other way than this? What would you do?