It’s not good for you to be miserable and really not good for your kid to see you miserable, unloved, or treated badly. I stayed for 10 years for my kid. I really wish I had left sooner because she is so much happier with us apart and she was really damaged by the dysfunction she lived in. Best of luck to you.