Emotionally disconnected from baby

This is my third pregnancy. So long story short, I have had a very hard pregnancy. It’s been stressful and has put a strain on my marriage. I feel absolutely no attachment to this baby and am completely emotionally detached even now at almost 28 weeks. I’m at a loss as to what to do