I am so sorry.
After this happened, did you have a consult with your doctor? Any genetic testing or visits with a MFM?
My close friend had a similar experience at 5 months. They underwent extensive testing and found an underlying issue that they are treating and monitoring during their current pregnancy.
There is a very special website for mothers who are going through losses, birth trauma, etc. Please PM me if you would like the website. (Not wanting to divert you from here, but this other site might connect you with people with more answers or similar experiences.)
Again, I am so terribly sorry.