After seven years working at Snapchat, I saw how social media — from Facebook and Instagram to TikTok and BeReal — can die despite its founders’ best intentions.