This was addressed last week (?) in the Ask an Apologist forum. Check there first.
For yourself you should have the blessing post partum when the child has died. Yes, it’s in the standard ritual and I recall reading it years ago. It’s a very powerful blessing. You should also seek grief counseling which is what my wife did years ago when it happened in our family. Very helpful.
All on the forum are sorry for your trouble.
Here is a link to a nice blog that helps folks who have experienced a miscarriage. Check out the links on the right hand side of the page of the blog. You’ll need to scroll about half way down.
This prayer also came from the website…very moving.
DISCLAIMER: Catholic Answers has turned over the archive to Catholic-Questions.org and no longer owns, manages, or moderates the forums. For additional apologetics resources please visit www.catholic.com.