A little scared, helpp

Hey guys! So with my lady relationship my ex and I had unprotective a couple times. He never came in me but I ended up getting pregnant 2 from the precum and had 2 miscarriages. I had sex today, the condom broke, he didn't cum yet, but stuck him back inside then pulled out right before he came. I'm a little nervous because of what happened the last couple times I had unprotective sex. What do you guys think?