Girl friendzoned me out of the blue?

Could anyone give me advice or opinions?-

So, I’ve been getting close with someone new for a few months now and then out of nowhere she drops the bomb, saying let's stick to being just friends….

Before that we had a date where she mentioned this crazy situation about her ex, (who's also her roommate cause she's dealing with rent struggles and finds it easier sharing a home and a car with him) and how she felt conflicted but needed to tell em up front because she didn’t feel right keeping it to herself. She mentioned how she has a lot of resentment and emotional baggage towards him because of the fact he cheated and did her wrong when they were together but it’s lowkey kinda weird how she mentioned this on our last date which was a few days ago and now this “let’s remain friends but I still want you in my life because I find you different and I still really like you… blah blah blah”

Honestly, it's stressing me out because I was really feeling her, and she's all worried about us getting together one day and breaking up suddenly and not seeing each other anymore (basically saying she’s scared of getting attached and getting her heart broken)… she mentioned how She's cool with being friends, maybe more, but she's not wanting to commit and be in a relationship with me because of our personal situations and because she’s scared that I’ll become an ex and doesn’t want to risk loosing a connection she already has with me.. It's like, she thinks I'm special and all, but commitment is freaking her out. Processing all this is a whole lot honestly and I need someone’s opinion.
Girl friendzoned me out of the blue?
Post Opinion