Thank you for your Question.
Sad to hear about your situation, more so because you are pregnant and your emotional health is definitely effecting your child.
So there are things in life that may have happened in the past and we can’t really sit and regret over it. Instead, we should focus on our present for a better future.
Your present for now is that you are married and pregnant.
You need to fix these two to be able to have a more balanced future.
Regarding your marriage both of you must seek some counseling. If he isn’t someone who would happily agree to do that then I would suggest you speak to someone wise who he would listen to.
All you need to do is to sort your marriage from first hand problems. You need to let him know your concerns and who you’re expecting out of this knot. You need to make a communication bridge between the two of you. (One on one is best)
As soon as you are on the go to solve your marriage, you will be able to focus on your child and InshaAllah by Then Your husband will be able to help you hand in hand.
InshaAllah it All goes well, and you’re together able to be happy parents to a happy healthy baby.