I'm worried I'm caught in a Bipolar Break-up Loop

I'm struggling a lot with something: I'm BP1 and about a year ago I had a big project to complete. I was managing a lot of moving parts.

The night before the project, I had about an hour of essential work to complete, after which I could get a decent amount of sleep. Since this type of work required silence, I asked for quiet to focus. My girlfriend had a different approach. She repeatedly interrupted me, offering her help despite my requests to be left alone. Each interruption made it harder for me to concentrate, and there was no way to avoid it since we shared a studio apartment.

Later, pleading and even begging for silence, I continued trying to finish my work while she kept interrupting. In the end, I managed less than an hour of sleep, after being caught in a cycle of arguing and pleading with my girlfriend for quiet during an already stressful time at work.

Due to the stress and lack of sleep, I ended up going manic, and now we're broken up. I lost a lot in this last manic episode: my girlfriend, my job, my apartment, and my lifestyle.

She has since admitted to 12 interruptions over three hours late at night, which while the count is probably more would still be enough to be fatal for me (someone who needs quiet to focus, especially on this particular task for 1-1.5 hours). When I asked her why she did it, she said she was doing so because "she cared" and that I looked like I needed help, even though the help I clearly expressed I needed was quiet and to be left alone.

Now, I'm left licking my wounds of a brutal manic episode fallout and asking myself, "Why did she trip me so close to the finish line?" It doesn't make sense. Her explanations don't make sense, and she doesn't really feel that she has done anything wrong. I have cycled through 10000 explanations for her behavior, and I just don't understand. What do I make of this? "Why did she do it" (on repeat)? How do I get out of this loop?