I don’t know how

I don’t know how to keep trying so I was supposed to be two months now my levels are going down doctor said am losing the baby just a few days ago we heard it’s little heart beating and just like that nothing :/ how do I keep trying this is my 3 miscarriage in 4 years I’ve been waiting so long I just don’t understand is it something am doing? Is it me ? Ugh this pain is the worst how do you keep trying when you fail so many I feel like having these miscarriages am just hurting my babies!!!

Sorry ladies just need to let some pain out !!!