My sister had to deliver a stillborn baby. From what she said, my advice is to find a support group online.
This was around 22 years ago this happened to her but even then there were online groups. I think it’s almost impossible to know what to say unless you’ve been through it.