It strikes me that an ad algorithm that forces grieving people to opt out of social media at a time when their friends and family are most interested in checking in on their well-being may encourage a broader pattern of falling back on non-ad-supported communication channels in the weeks or months to come.
It seems like there's a strong case to be made here that some ad-supported communication channels should consider either an ad-free grief mode when users are in distress, or at least sell a giftable ability to use the site without ads, in which case friends of the grieving could chip in to avoid this kind of distress.