Haha, it's actually the exact opposite!
The more lonley you are the more you psychologically adapt to it. You reason about or do whatever to make sense of it. Some people want to be alone but no one wants to be lonely. If you are lonely it isn't because you want to be.
The longer you are lonley, the more you need to reason about and adapt and get used to it and you will lose or won't gain neccesary skills, knowledge and character that helps people gain and keep company.
It is similar to how rich people tell poor people to save up, work harder and stop buying avocado toast so they can get rich what you are saying, like they think the poorer you are the more you will get rich or something. Povery is expensive and loneliness likes company.
Generally speaking, it is called the vanishing finish like (I think there is even a wiki page for it). The longer it takes, the longer it is going to take.
People who are unemployed or out of a relationship can also testify to this, the "feast or famine" phenomena where if you already have it, it's easier to have more of it.
Personally, I don't know about a cure but probably the more you realize your mortality and how you need to appreciate now and today, I think that helps get a better perspective and lets you enjoy the few days you have on earth with or without company.