I feel like my heart has been ripped out of my chest

So I've been with my boyfriend for almost a year, his not happy at his current job so he got a better offer in another city. So he decided that by the end of the year we call it quits because he can't be in a long distance relationship, which I fully understand but also added that if I'm pregnant he'll try work things out. I love this man so much, his been nothing but good to me. I'm losing my best friend, I'm still in varsity studying so I can't just up and leave... I don't know how to deal with this and he seems to be dealing with it just fine. But he says it's hard on him to coz his leaving his old life, friends,family and me to be in a different city where he knows no one. I don't know know what to do, I just wanna stop hurting. 😭😭😭😭😭😭😭😭😭😭 my heart is aching