Pregnant with relationship problems

Me and my partner planned to have a baby. I’m now 22 weeks and we’re going through a really rocky stage where he was really horrible to me.

I love him and the pros of the relationship still outweigh the cons so I want to work through this with him and he does too.

I feel so down and sad and I just don’t know how to pick myself up.

I’m so worried that I’m going to harm the baby by being sad but I know if we get through this then we will be such a happy family.

I don’t really know what I’m posting this for but does anyone have any insight into what I should do or how I should deal with this?

Thank you in advance