I've gotten into watching a few travel vloggers. One of the best IMHO is Eva Zu Beck. She's not without some minor controversy, but who really isn't? What I enjoy about her channel is her contemplations on the beauty of the world and the difference between loneliness and solitude.
It was a recent video where she said something to the effect of "solitude is something you choose, loneliness is something inflicted on you by others."
I thought this was rather profound and changed my perspective on what loneliness was in terms of giving power over yourself to others. You can't cure loneliness because you have to fix the world first. What you can do is to refuse to give that power to others.
If you find yourself alone, it's okay. You still have your power. If you stay calm you can find peace in solitude.