Losing sleep IS the pits. Being tired just makes pain worse and vice versa. I could not live without melatonin at bedtime. This is a good natural alternative and OTC. Some people do well with a SleepyTime Tea kind of thing also. I keep a bottle of Tylenol bedside. The only time I ever take it is if I wake middle of the night and am just too sore to fall asleep again. It doesn't provide big guns pain relief but just taking the edge off a little seems to help at night so I can go back out for a bit.
I hope you get some rest soon,
Littlepaw