Am I in the wrong

I wanted other women’s input. I’m 27 weeks pregnant. My boyfriends gets off work at about 3/4am. I work the complete opposite. I work work mornings or afternoons. So lately he’s been getting mad that I’m awake when he gets home and at first I thought he was treating me like a child since I am only 19 and he’s older, but he finally opened up and said it bothers him because we’re about to have a kid and I sleep in a lot. Like today I did sleep until 1:30pm and just went straight to work meanwhile he was up at 11am. So my question is, is he overreacting or should I really work on it and be more understanding? I have talked to my doctor about insomnia, but they only recommended Benadryl which I really don’t feel like taking all the time. It really wasn’t until he put it that way that I did feel bad that I sleep so shitty, but I’m still on the fence if it’s me or him in the wrong.