That is not the only possible explanation. A more likely explanation imho is that social media falls into the long list of things you do for a short term reward even though you know you shouldn't, like smoking a cigarette or getting drunk.
You know it is not good for you but your executive function and ability to plan long term are compromised (whether chronically or acutely), so you do it anyway, and regret it later.
There really is something to this. Living in NYC you meet a lot of people from different walks of life and levels of wealth.
Over and over the most stressed out anxious people I meet are the underemployed/nonworking spouse in very wealthy couples. Especially the childless ones.
Many people prefer having anxiety about drama to being bored.