I’m very sorry to hear your story my heart absolutely goes out to all involved.
I have a little experience in this though nothing as awful as losing a child. My advice, as per others, is just reach out and keep it simple. It’s okay to say that you don’t know what to say (if that makes sense)...