Two missed miscarriages

I can’t believe I am writing this. We experienced our second missed miscarriage and I don’t know how to move on. I don’t know how you can have one healthy pregnancy and then go on to have two miscarriages. I feel so sick and I feel we will never be able to bring a baby to term. What’s even worse is it took us 9 months to conceive since our last miscarriage just for it to happen again. How does this happen? Why does this happen? I am so broken.