Definitely see a fertility specialist. So many possibilities for what went wrong but keep your body healthy exercising and eating right & find out what you can do for a healthy pregnancy.
Progesterone shots probably will be needed but that's so minor a thing if it means keeping your baby.
I'm so sorry. I know exactly how you feel. I've been through so much loss, at least 10. 2 failed ivf cycles as well as many miscarriages. My journey to have my 2nd child began at 38 when I married again. I'm now 44. 6 years later my husband and I felt quite hopeless, we decided to look once more at ivf but with a donor egg. I'm now 18 weeks pregnant with a baby boy. It's not an easy decision and by no way a guarantee but your chances go way up with a fresh, young donor egg.
Get some professional help... It might just be bad luck but you'll not know until you see a specialist fertility expert. Good luck
People have babies at 40 all the time. It's not easy but much more common now. Try to find our the cause of the miscarriages. .. Do you have a blood disorder you don't know about? Etc.
It might just be your body letting you know that it's time to stop trying. No judgement and not trying to be mean but when you are much older in the procreation stages it's harder to hold a pregnancy. Also there may have been problems with the babies that you miscarried. I'm sure your doctor has informed you that you are also at a higher risk for a child with special needs. Maybe you should try having a surrogate instead of getting pregnant yourself. This way it will be less stressful for your body.
Awe I am so sorry you went through that god bless you and those beautiful babies (; have u tried talking to the doctor to see if theres some type of meds you can take or something that can help .?
What does your Dr say about it?? Sometimes progesterone shots are required and you might ask about that.