Feel like my pregnant wife hates me

My wife is pregnant with our first child together. I have another child with my now deceased ex wife. My wife has been really mean lately. I understand she's pregnant and miserable and I'm trying not to take it personally but she's always yelling at me about something. I'm also dealing with my ex wife's death. She died 2 weeks ago and my daughter is living with us now. It's been hard because even though our divorce was messy we at one point loved each other and she's the mother of my first daughter and the fact that you can just ..... Die..... Be gone from this earth when I spoke to her the day prior and she was fine has really messed me up. My mom already died two months ago and now my ex wife is dead and my wife seems to just hate me always be yelling at me. I kind of just want to drive away and never come back. I would never do that but it's how I feel

Edit: it's not that simple to just move on that my ex wife is dead. Especially since I also have a grieving teenage daughter. I also lost my mom a couple months prior so all this death is really messing with me

Edit: Thank you for all the advice. I will definitely try seeing a counselor. Honestly I don't even think it's just the fact that my ex wife died. It's that we spoke the day prior because she needed me to pick our daughter up from school next week. We talked and then the next day she's gone. With my mom I had seen her the day prior... Now she's gone. It disturbs me that everything can be fine and the next minute a person in your life is dead. And my ex was dead for hours and I was just out living my life thinking everything was fine