After her last breakdown (where she tries to kill herself) I gave up, but she lives withme

We've been together for 2 years now (32M and 27F), everything was absolutely perfect until the 4th month, where she had a major breakdown after partying and screamed and wanted to die. I had to get her in a cab and take her home. That's when I discovered something was up.

After that, many many crisis and breakdowns, when everything is fine is perfect, but when she has a breakdown it's insanely bad. I love her very much and wanted to help all this time (she started DBT therapy, takes medication, does everything that's supposed to help) but she still have breakdowns occasionally. It wouldn't be that much of a problem if it was just some discussions and arguing. But things usually escalate heavily and she screams at the top of her lungs at me and sometimes hit me when she's angry.

Last time I told myself it was going to be the last she does this (it was on January 6th), ever since we've been struggling and she had another breakdown on monday, the emotions are too much for her and she always try to get a knife or something to make her pain go away. Her psychiatrist told me if she is trying to hurt herself I need to stop her, hold her, and do the protocol of not letting her spiral and hurt herself.

Anyway, I'm hopeless and still love her, but things are getting dangerous and I think it's best we go our separate ways, but the thing is, she lives with me for a few months now, she doesn't have any family here, I'm scared of leaving my place and letting her stay here for a while because she might want to hurt herself.

I'm playing the slow game and waiting for her to find another apartment or something. What should I do?