Husband problems

What do you if you dont like your husband? I love him but we are just not getting along and havent for awhile. Im pregnant with baby number 2. He is so hateful 24/7 with me and our 3 year old. I sit in the house all the time by myself because he works 3rd shift and sleeps all day which is fine he has to sleep but when he has his nights off he doesnt want to do anything with us. Our 3 year old wony hug him or anything. This morning he yelled at him for something stupid so I took my baby and walked out. He later came in here and asked what my problem was and I told him I was tires of how he treats our 3 year old and my son said you broke my heart daddy. I dont even know where he heard anyone say that but he said it. I feel like crying. I dont want to leave him but things arent changing. ): any tips on how to get through marriage problems. Maybe its just my pregnancy hormones. Idk. Thanks for reading anyway. 💔