"If you make friends with yourself you will never be alone" - Maxwell Maltz
How do you become friends for yourself?
So do not let others destroy you and make you hostile to yourself.
Stop damaging yourself to pieces when others do not like something you do, even if your actions are considered wrong, dangerous, or stupid.
The problem is not with you, but in the actions you make.
Find a true friend who can withstand madness and deprivation, but still receive you and is always there for you.
But accept the uniqueness of others and free others to be who they are.