I need someone

Me and my boyfriend have been together almost two years and he's been with me through everything. Mental hospitals, breakdowns, etc. but lately he's been acting distant and less affectionate. And the other day he tried to pressure me into sex which made me very uncomfortable and triggered so many flashbacks when I got home. I don't know what to do. There's more things he's done but I don't know if I can leave him because I doubt anyone else would stay with me. I have so much emotional baggage and cry during sex and I feel like if I leave him I'll be alone which is my biggest fear. I just need someone to help me please