TWO CONSECUTIVE MISCARRIAGES

Hello! I have been ttc for 7 months now. I finally got pregnant and it ended in miscarriage at 5 weeks. Then I immediately got pregnant right after that (no period in between) I am supposed to be 8 weeks but just started bleeding and cramping three days ago. I went to the hospital today and they could see the sac in my uterus and said to just wait for it to come out. Has anyone else had this experience?? How long will it take to come out? I’m in so much pain 😓