So sorry to hear that.
Your healing is super important! For both you and you baby. Your own well-being has to come first!
So I would say that if staying in contact is getting in the way of that, then you might need a period of no contact with him.
For the sake of my baby, I have tried to maintain contact with my baby’s father since he left me at 5 months pregnant, but always end up feeling worse and like it’s getting in the way of getting over him. So I’ve cut contact for now and feel a lot better.
Try even just 2 weeks to begin with and see how it goes. If you still don’t feel like you want contact after that then don’t. Or you may decide to have somebody else mediate or communicate on your behalf if there are important things to talk about with him.
Do you have a support network or even just a few friends of family you can talk to and rely on? And have you spoken to your midwife or GP about getting support for your emotional well-being?