It's a very sad and difficult time when a family suffers a Babyloss, either via miscarriage or stillbirth. As the mother of five daughters, I have experienced both as a Grandparent, DD4 suffered 5 miscarriges, then after help from the NHS fertility clinic at our Local Hospital, she managed to give birth to a baby girl when she was 32, surprisingly followed by a baby boy exactly a year later. She had almost given up hope of ever becoming a mother, although the Consultant Obstetrician responsible for her care told her that most women manage to deliver a baby of their own eventually, but some can take a decade or more of failures and treatment to do so.
DD4 was treated with Metformin tablets, and was with a new partner for two years before their Children were born.
Hopefully one day your daughter may have a similar happy outcome and become a Mum herself, often it will happen when she least expects it. Good Luck.