These irrational thoughts are what cause you to feel abandoned and permanently rejected. His behavior - mistreat others to leave him alone "... my swamp is mine, mine and no one else, and less than a useless, pathetic and charlatan ass ..." - is a consequence of these thoughts , because he does not really feel this towards Donkey. You can only overcome this suffering if you consciously manage to replace them with more reasonable ones. His mental processes have supremacy over his emotions, and he tries to hide them by isolating himself from the world and focusing on himself.
There is an irrational coincidence thought for the characters: how it is absolutely necessary to be loved and approved by others almost at all times. And the overall rating they give themselves, their self-assessment and self-acceptance depends on the degree of approval they give others, expressed differently by each of them. Therefore, this will have to be treated with a cognitive-rational therapy, the steps or objectives of the therapy will be:
Identification and modification of misconceptions and misconduct
Knowledge and correction of cognitive patterns that produce maladaptive