I know I deserve better

I know I deserve better. He’s going through his own shit and keep projecting every negative feeling onto me and it isn’t fair. All I do is get the worst of him and I know I should walk away. I’m so unhappy but I’m holding onto what we once were. And it was magical and he’s ruined everything. And I can’t for the life of me walk away because I feel like I’d be making a huge mistake. I know I should but I can’t and I hate myself so much