Some nights sleep just doesn't show up, pain flares, the heat doesn't let up, your body's on its own schedule regardless of what the clock says. And then there's the extra layer of feeling bad about not sleeping, on top of not sleeping.
Worth separating those two things: sleep and rest aren't identical, and on a night sleep isn't happening, rest still is. Lying still, lights low, no pressure to perform sleep, still counts for something, even if it's not the same as eight solid hours.
Tonight's version, if you want it: whatever happens with actual sleep, give yourself the rest part without the guilt part attached. What's one thing that makes lying awake feel less like failure and more like just resting?