I actually don't really know how to prevent it. For me, feeling hollow is natural and it happens to everyone. As for how to overcome it, I do think that distracting ourselves by mayhaps surround ourselves with people who care with us is actually really help. I don't think took out ourselves from society helps in mending the hollow feelings, if we are alone we tend to overthink and it makes we are feeling saddened with why are we even feeling this hollow in the first place.
Write down what we are feelings also helps a lot in my case, and if you want to cry just cry if you want to shout do shout. I hope that it helps!
Retrospring uses Markdown for formatting
*italic text* for italic text
**bold text** for bold text
[link](https://example.com) for link