I need help!

Maybe too much info but yesterday i was out walked alot and started complaining about pains in my stomach i got home laid down and they went away couple minutes later i was having sex with my baby daddy and he noticed i was bleeding i got up went to the restroom and alot of blood came out we immediately rushed to the er. They did a u/s and baby was fine he was moving and heartbeat was good. The doctor said my cervix is open and i have q infection bv and need to put some gel. But my concern is she said i have a possibility of a miscarriage i am 14 weeks. Has anybody gone thru that. My baby daddy and i havent stopped crying thinking about it. I need advise or opinions. Thanks ladies