Feel like I'm losing my mind

Rebecca
I have only been with my boyfriend since the middle of January and we already live together and just found out three days ago that I am pregnant. My ex before I was madly in love with but he just couldn't commit to me. Right before I found out I was pregnant he got in contact with me and I had kind of planned on leaving my boyfriend and running to Florida to be with my ex (he moved there after we split up). Now that I told my ex I'm pregnant he doesn't know if he still wants to be with me because he is scared to raise someone else's child which I totally understand. I know all of this makes me a shitty person so please don't judge on that. My problem is now I keep having dreams and thoughts that I miscarry and I'm happy because I can be with my ex. I need to know that I'm not going crazy and it's a hormonal change.