Miscarriage

I miscarriage my first baby at 6 weeks, it happen on may 4 then 2 days after on may 6 my ex left me, then after on may 8 I went in for the surgery, then may 10 was mother's day, I thought would best for me not to have any kids, I went through lot that whole, then weeks after all that I met a guy online, we thought it best to be just friends then few months down line we started to become more and more then friends then we started to have sex and I was on birth control and we use condoms some how I ended up being pregnant with his kid, every days it hard for me thinking he going to leave me if I lose his kid and I am 24 weeks pregnant I am having a girl, HOW CAN GET PAST ALL OF THAT.