Not so sure. If one was forced to give up either gaming or social media, I wonder what the majority would choose?
I'd guess they'd give up gaming. More likely, cynic as I am, gaming would instead shift onto social media platforms more than it already has.
If I had to say which one is less healthy, and causes more social and emotional problems, it would hands=down be social media.
The thing about games is that they are games, not reality. Social media gamifies reality. That's far more problematic.
If you get killed in a game, you respawn / start from your savepoint. No big deal. It's just a game.
If you get abuse and lunatic, extremist views attacking you on social media, that can damage a psyche and, even worse, get people to think "I'll behave the same way as them - if you can't beat them, join them".
Games are games. Gamers tend to understand that.
Treating reality as a game is probably the worst thing that has happens societies globally in this century. I strongly believe it's led to a deficit of empathy and understanding, it leads to an inability to reach consensus and so find solutions to problems, and we're all the worse off for that.