Did I overreact, my heart is breaking.

My boyfriend and I are both 30 been dating for 4 years now. He lives in New York and I live in Massachusetts. We have been planning and saving for marriage for a couple of years now but we recently got into this huge fight over the distance. He wanted me to move to his place. We always agreed that he will move to where I am when he’s done with nursing school. We were able to come to an agreement that where he is not suitable for raising a family so we went with our old plan. Fast forward to a couple of weeks ago, on FaceTime he tells me he slept with a lady and now he’s expecting a child. I couldn’t believe it, felt like my life was over at that moment. I was shaking didn’t know what to do so I sent him a text the same night that I was not going to come between him and his child and that I wish him well with his new family. He called twice right away but I didn’t pick up so he text me and basically said it was a joke. I was so scared to even see his messages ( was hoping for it to be not true) that I waited till the next morning to read them. Basically I have been texting and calling him since then but now he says because I said am done with him he’s done with me too. He says this showed him that in the future should anything happen, I would just give up and leave him. I feel like yeah in that moment I made a rash decision but who would not react the way I did? Part of me feels like I really hurt him and the other part feels like he wanted a way out. What should I do, I have been pouring my heart out to him but he’s just ignoring me. I am losing hope already and it’s killing me inside. Please help!!! Should I give him time or start accepting that is over and move on?