Anyone that's had two or more miscarriages?

My last two pregnancies ended in miscarriage at 11weeks+a few days. I feel really down about this pregnancy now as I think I have little chance of actually having a baby at the end of it . My last pregnancy I seen the heartbeat at 7weeks and everything was perfect. The doctor said I only had 5% chance of miscarriage after that scan but It still happened . Do I have a higher chance of lossing this baby or was it all just bad luck ?