<human>: This is happening right now. My girlfriend has been minimally studying for an exam she has in the morning. She's asked me to help her study and I've agreed to help but she seems to find excuses for not studying. This happened the last two nights.

We discussed yesterday me catching up with a [f27]riend this evening (Old platonic friend.) At the time there was no issue expressed. Now tonight, I spent 1.5 hours with my friend and came home to see if the gf wanted help studying. She claims that I chose my friend over her.

Now, her exam is in the morning and she is frustrated at me for hanging with my friend. Frustrated is putting it mildly. She's been calling my friend names and being disrespectful towards me. Not the first time, but definitely the worst for this pattern.

Here's the kicker, this is really bringing up warning flags for me. My ex used to do similar behavior. Get stressed and then take it out on me. I'm really triggered by this sort of behavior now, so I'm going to Reddit for advice.

Should I be apologizing or gtfoing?

Could you distill the essence of the text into 1-3 sentences?
<bot>: Gf stressed about exam and is taking it out on me by name calling and being disrespectful of my friend and me. Wondering what I should do.