Amitryptiline is a TCA antidepressant that can be helpful with sleep. It also helps with relieving some headache pain but has some undersireable side-effects once you go over 25 mg, in my opinion. There's nothing worse then having to pee badly in the middle of the night and taking 10 min to drain your bladder (my prostate is fine)
I hope things get worked out for you. It's tough when you go from an active personal/professional life to sitting in dark rooms.
Hang in there.