We need to learn to just disconnect and focus on the real and whats in front of us. I can't tell you how many times I have sat down to do some work, looked a twitter for a minute and looked up an hour later severely depressed about the state of the world and angry over something I have zero impact on.
Just unplugging from social media may really be the answer.
Also In tech especially so many of us are always after the next job and raise that we are don't take time to establish roots and make friends. Isolation is an epidemic among tech workers.