It’s pretty obviously not the haircut itself that’s the problem…if she went back to having long hair, would you think, “Great! I suddenly no longer have any concerns about my wife’s gender identity!” There’s something more going on there, whether it’s real or just in your head. Go to therapy. Ideally as a couple, but individually if you have to, to get to the bottom of that.