There’s always a lesson to learn. Self-acceptance can really help in elevating the self esteem. When we truly acknowledge our real self irrespective of the external factors(prejudices and the fear of being judged), then we can begin to enjoy our own company.
I can tell you from my personal experience that nothing lasts forever, not even the negativity around us. We just need to allow that time to pass.
My prayers and best wishes are for your, my friend.