A pet can be a good bridge out of that cycle. Otherwise it takes a bit of a leap of faith (still doable but difficult).
The fact that you’ve identified the cycle is very good, though. A lot of people never realize that self-pity is contributing to their loneliness.
Half of Fortune 500 corporations and the US MIC