All these algorithms need to convince someone who is aware of their downsides is that the upsides are worth it. Instagram needs to convince someone that, sure Instagram isn't good for their mental health, but staying off Instagram means they will have less friends which will be worse for them. This will almost certainly work for a teenager. Other stuff may work for an adult.
And with the way social networks work, something like this can simply become a self fulfilling prophecy.