I have been on Prostap, apalutamide, cyperterone acetate as part of my HT - for life. During my prostatectomy they removed 2/3's of the bladder, so I now visit the toilet 4 to 5 times every night, on my worst nights this can be up to 9 toilet trips. This was absolutely devastating at the start, but I just decided to embrace it. If I can't get back to sleep, which is more often than not, I just get up and do something productive, do some house / personal admin, clean the kitchen, put on a wash, kick the cat out etc. When sleep washes over me again I will go back to bed, but I give up at 6:00 ish and go for a run / gym. (I go to bed at 8:45pm)
I am 54, but was able to successfully apply for ill-health retirement due to fatigue (permanent), the nocturia (disrupted sleep) and general poor health and receive a meagre pension. I can't imagine how difficult working and HT is, especially the commute home after a full day. Towards the end of my working life this was proving dangerous due to tiredness.
I wish you well and hope you find a solution to your sleep issues. A lack of Sleep and constant Pain have a lot to answer for.
Good Luck