Trigger for loss

Had a scan at 10w4days and noted twins. One was no longer viable but other is growing well and healthy…. Feeling lucky to still be pregnant with one but has anyone else ever had something similar?