Here’s an idea from Lifehacker:
“The biggest stress is humiliation; the second is loss. The best defense, for people with a biological vulnerability, is a ‘good enough’ marriage, which absorbs external humiliations and minimizes them.”
“Good enough” marriage? Ew.
Entering a relationship because you’re lonely or because you can’t be by yourself is not a smart idea. Find stuff you like to do–like a hobby or something.