Divorce with a baby ??

My husband and I have been having a lot of problems (started before we had our baby) but things have gotten worse since his birth four months ago. We don’t get along and we’ve pretty much stopped communicating ... sleep in different rooms etc. We both just do our own things. I’m really unhappy with him and I don’t think he wants to work on things. I’m considering divorce but I don’t want that for my son. I’m also afraid he would get 50 percent custody and I would have to deal with not seeing my baby much which kills me. I know it’s also not fair for my son to grow up in a household with fighting and tension etc. I just feel so torn. Anyone experienced the same and have any advice ??