Pain management for better sleep.
You will need to work out if your lack of sleep is causing your pain? or if the pain is causing a lack of sleep? Then focus on whichever came first.
Not sleeping properly can not only magnify but sometimes even generate pain signals.
As always wishing you better sleep,