Being abused mentally.

Hello, just recently I found I was pregnant. I had miscarried back in November. My boyfriend and I have been together for 5 years, he’s cheated on me numerous times. He’s paid to other women hundreds of dollars for nudes and was willing to meet up for sex. This was during the time I was pregnant. I have tried to kill myself today, over an argument where he hasn’t been there for me emotionally and hasn’t done anything to make me feel loved. I hit myself in the stomach more than a few times. I’m wondering if that’s enough to cause a miscarriage? I know being in this relationship is too unstable to bring a baby in this world, especially with me suffering from depression and wanting to self harm. I want to move on and tried but he manipulates me to the point where it’s been going on for so long.