Loneliness is considered an epidemic, and has been around for a while. The Bible tells the story of Job in his great loneliness and grief. Yet there is hope, as described by Christopher Ash in this article.
"Job is terribly, frighteningly alone. He sits on a rubbish heap. His wife has come and gone after a disagreement. His only companion, if we can call it such, is a broken shard of pottery with which he scratches himself.."
Source: https://www.crossway.org/articles/entering-into-the-loneliness-of-job/