Your situation needs a lot of compromise and understanding from both parties.
Completely understand you need extra attention at this last lap and being at constant discomfort is not helping also. Your feelings are valid. 🧡
For his case, assuming he does not always hang out with his friends, he also needs a "break" and it may help rejuvenate himself for the new chapter in life too. After baby is out, confirm he is not encouraged to hang out.
Express each others' point of view and feelings. You can also request a nice simple date at home for extra attention.