Hi Crispy,
So sorry to read about the issues you are having and especially about your struggle to accept yourself as a gay man.
My daughter suffers from self esteem and confidence issues which started when she was at school over friendships (girls can be super harsh). We must have watched the movie Mean Girls about 20 times!!
I got her into the habit on a Friday evening of writing 5 positive things that had happened that week. She said that, coupled with sports really helped her.
Maybe you could try positive journaling? By coincidence I have started The Positive Journal by Nancy Clark today, to help me deal with a sibling who uses their recent diagnosis of Autism and current situation to justify their emotional blackmail and poor decisions over the care of my parents and now probate.
Try and be kind to yourself and find time to do things that bring you joy. We dont choose who we love or are attracted to, so, I hope you can learn to accept that part of yourself. You have nothing to be ashamed of and sound like a good person!