5 weeks pregnant &a ruptured cyst?

💙 • 1 1/2 year old son , Baby #2 due January 2019

I went to the hospital today for very sharp pain. I thought I was having an ectopic pregnancy but turns out I had a cyst that ruptured. Has anyone had this, this early in pregnancy and Baby was ok? I'm so scared for miscarriage. In the ultrasound they couldn't see the Baby but they did see the sac in the uterus. Measuring 4w6d