Discouraged while trying to be a mommy..

My boyfriend and I are tryin for a baby. He's came in me 10+ times and I had an early onset miscarriage... it was my second one. Could there be something wrong with me? I have an appointment to see my doctor because I may have ovarian cysts but I know that won't keep me from becoming pregnant.. it's very discouraging that my body just won't hold a baby. Is there anything I can do? 😕