If your W is a lesbian, she is. You changing won't change that.
If you know you need to change your behavior, then do it
My comment here is that we all have changes that we NEED to make. Your changes may or may not help things down the road with your W. But you make the changes for YOU, so YOU are a better person, not to try to WIN her back. Your old marriage is DEAD, maybe your wife announcing her sexual persuasion will help you to understand that.
Can you make a new marriage - with her - or someone else, maybe, but their is lots of work to do to get to that point.
Although this is the DIVORCE BUSTING site the first thing is to DETACH and LET GO of her.
I am not telling you you need to get divorced however your wife needs space and LOTS of it. I would not stand in her way, and not do it for her if that makes any sense, let her do the work.
Sounds like she is definitely going through a crisis I will say that.