Hello and welcome here!
That sounds like quite the crazy ride for you (and for her, no doubt!)
I'd like to ask a few questions to clarify the situation:
It sounds like you were living with her. How long were the two of you living together?
How long ago did you move out? Did you leave belongings behind?
Do you have a stable place of your own now, or are you crashing on somebody's couch?
Are you and she still communicating? Text, phone, in person, email, or anything?
As for what to do--there is a middle path besides being a doormat when she's attacking you verbally (or physically!), letting it turn into a huge fight with her, and ending your relationship with her.
I'd start with the idea that when she's THAT upset, the best thing you can do is remove yourself for at least 15-20 minutes because almost anything you say will make it worse. And yes, she will probably tell you that going away will make things worse too. You don't have to believe that, or argue with it. This is one article that might help at a time like that.
How to take a time outYou aren't alone--we've been there. Keep posting your story.