What, indeed, is the cure of loneliness?

Boredom.

Allow yourself to crawl on the floor, read books inverted or even look out the window for infinite time.

Allow boredom to let you feel yourself.

You will then look forward to loneliness instead of running away from it.