I don't know what to do 😥

I have been posting anonymously since my husband is on here too, and lately I have posted several times because I feel like my marriage is falling apart. My husband and I have had a lot of therapy over the last year because we nearly divorced last summer, and then we found out I was pregnant right after we decided to try working on our marriage one last time. We love each other and both want to be married and make this work. BUT. He seems like he is never happy and the issues just continue to pile up while only a few ever get resolved. Earlier this week we went together to each other's therapy appts (our therapists work together so we are able to get both individual and marriage counseling) and both therapists felt like my husband was not doing his best and offered suggestions. I am 33 weeks pregnant, and as my pregnancy progresses he just gets more and more distant. He has been sneaky smoking until only just recently when I finally got him to stop hiding it, he has completely stopped complimenting me, he constantly insinuates that I am lazy and should get a job, and he has lost pretty much all interest in having sex with me. Today I opened his iPad and it was still logged into his facebook messenger, and I saw a couple of troubling messages. One was him committing to applying for a job on Tuesday with an employee at that company, and this was after we agreed (I thought) it would be a terrible job because the hours are ridiculous and he likely wouldn't be able to help with our newborn. I have nobody else to help me and my midwife has already made it clear that I will have one week of mandatory bedrest. Currently he runs his own business that we have sunk a lot of money into and allows him to make his own hours. The other message I saw was a friend request for his ex from years ago, followed by a message. In the message he said he had been thinking of her, he apologized for being a jerk, and then he thanked her for being a "generous lover" when they were together. She did not respond but accepted the friend request. WTF is going on? If it was just one thing, it would be forgiveable. But my husband just keeps becoming a worse and worse husband and now we are supposed to raise a child together. I don't know what to do anymore because I work so hard and our therapists always think I am being a good wife and dealing with my own issues well, but my husband just keeps creating new issues. Ugh. Thanks for reading, I just needed to vent. I have been crying all day.