Not very late, Weasle but my first pregnancy ended about a week after the twelve week scan. We knew from the scan that the baby wouldn't survive much longer as it was extremely damaged by Amniotic Band Syndrome, so much so that they assumed there was a chromosomal disorder was also present due to the baby's head appearance on the scan but testing after delivery showed that wasn't so. That was seven months before I turned forty.
Although my period started again quite soon, I felt that my body took quite a while to get back to normal (I didn't seem to produce fertile type cervical mucus) and the first month it did feel normal, I conceived our son and found out a week before I turned forty. The experience did affect how I felt during that pregnancy as I didn't feel able to love the baby until he was born unlike the first one, who I felt I loved a lot whilst pregnant.
I also had an earlyish mmc agreed 41 when he was 10 months old and again needed surgery but because I was still breastfeeding, it was several months before I even had a period and then I wondered if I'd ever have a second child but actually conceived (the current baby) fairly quickly, a month or two after, and found out on my 42nd birthday. One of the leaflets the hospital on that second occasion gave me included the statistic that sadly forty per cent of pregnancies in women over forty end in miscarriage, and somehow that helped me to accept that what happened to me was normal for my age and that there wasn't a problem that should affect me trying again.
If you do want to keep trying, don't let your age stop you and try expect it might take a while (that way if it is quick, it's a bonus but if it isn't, you feel that's what's expected). Also remember it's normal if you feel differently about ttc or about your next pregnancy.
I hope that whatever type of care you are receiving now, the medical staff you see are as kind and supportive as those who attended me.