Breakup after baby?

Can any of you ladies please help me? I’ve just had a baby (5weeks old) and me and my boyfriend are in such a toxic place... our relationship isn’t going to get any better and we aren’t right for each other so he says. Can anyone please give me advice about how to deal with this as I still love and care for him and not sure I can cope with seeing him during custody visits but also I can’t stay with him it’s not a healthy environment for us or baby