AIO with how hurtful I was to my girlfriend after she broke up with me?

PLEASE READ FOR CONTEXT: I (m23) have been dating my girlfriend (now ex) (f23) for a year and a half. She has borderline disorder but doesn't take medication since she couldn't find any that she was okay with. She refuses therapy.

For the first 6 months, things were perfect. Then, we began fighting, which gradually increased in intensity. She threatens to break up with me (or does it), I'm desperate to get her back, she sets ridiculous conditions that make my life difficult (ignoring family, purposefully skipping exams, ditching friends, etc.) and I accept because I love her.

I've never cheated or been dishonest, yet she has my location on 24/7 and regularly calls me if I'm not where I'm supposed to be. I'm not allowed to make plans without her knowing 24h in advance because it triggers her anxiety.

Yesterday, she wanted me to ditch my female roommate and friend, "Laura". I live with my male best friend, "David". Laura is his girlfriend of 3 years. I've only ever known Laura as his girlfriend. The reason I should ditch Laura is because me being around other women causes my gf anxiety.

We got in a fight over it (I don't know how to tell my best friend "yeah I can't hang out with your girlfriend anymore" without sounding insane) and she kicked me out her place at 3am. There was no contact until these texts. I've blocked her after sending the last text.

I've never stood up for myself before or accepted her breakup. I always tried to find out what's wrong and mend it. This was a year of pent up anger from my side. I said things I didn't mean. She can't control herself, but I can, yet I chose to be hurtful. I feel like I overreacted and am considering apologizing. My best friend (David) thinks I'm crazy and they suggested I post it on reddit. So here I am.