Oh dear.. I'm so sorry this is happening to you.
But.. you have to fight back, even if it's against your nature.
I would fight back doing as Beth Andrea suggested, keeping records and documenting everything. You might also want to record some of the conversations, your wife's temper tantrums and record on video the nights when she's noisy (the moving images also record the light or lack of it which gives some indication of time).
Also if you have weak points, then so too does your wife. What are they?
Isolate yourself in one room in the house, with locks, with everything which is valuable and sensitive in it. Get an online cloud service for recordings and scans of evidence and stuff you're documenting in case the files are found or your computer is destroyed or stolen.
I understand you because I'm generally an amicable person and personal conflict makes me ill. But you're going through a divorce and about to start transitioning and gender reassignment - you're going to have to toughen up and learn how to pick your battles and fight them effectively.
What you have to bear in mind is that if someone is going out of their way to be unpleasant to you then they're not necessarily having an enjoyable time (here I'm giving your wife the benefit of the doubt that she's not usually unpleasant, I could be wrong).
If it goes against your nature to be unpleasant then there's a lot to be said for being passive aggressive. I know that most Americans give being passive aggressive a bad rap, but generally someone only really calls you passive aggressive when you're not doing what they want or expect. Here in the UK we call it being awkward or cantankerous.
I'd also make sure that you have an effective lawyer. If there's one available I would hire either a Nigerian or Pakistani lawyer (a tip I learned from a London businessman years ago) and you might consider a female lawyer.
So basically, get evidence, stop playing by the rules, and never, ever, ever give up on yourself. Fighting back would be good, but doing something which would cause your wife to abandon the idea of fighting you would be better.