The good news about this is:
1. Sexual orientation and gender identity related OCD themes are extremely common.
2. ERP therapy works, and is a viable treatment for OCD.
Of course, therapy is not always a viable option, due to cost. But, if you do have the funds to pursue ERP therapy (with a therapist that specializes in OCD, not just any therapist), it can help set you on the track to relief.
Have you heard of NOCD? It’s a service that can get you connected with a therapist that specializes in OCD treatment and ERP. They are an online-only service, and work with clients regardless of location.
There are also OCD communities online and in-person. The IOCDF has a list of in-person meeting sites on their website.
I understand how you are feeling. I haven’t personally experienced these themes myself, but I have lived through periods of relapse and recovery from OCD. I thought it would kill me- but I won’t let it, and neither should you. We have to keep on living.