I started suffering from pins-and-needles in my fingers a few years ago. As a programmer, I was totally terrified that my typing was ruining my wrists and, despite my best workplace ergonomical efforts, it wasn't getting any better.
After a few months of sporadic symptoms, I noticed that the bad days were really bad in the mornings and got progressively better over the course of a workday. Huh, why would that be? I started paying more attention to how I slept (pillow positions, spine positions, restlessness, temperature, etc.) and noticed that I was curling my wrists pretty badly when I got cold at night or when life was more stressful. I'd literally wake up with both my fists curled into a ball.
So, really, I was spending many nights with my wrists curled for hours at a time. That can't be good! To fix this, I started spending a few minutes each night consciously laying my hands flat with my arms at my sides and getting comfortable with a better sleeping position. It took a few months to make this effort a habit, BTW.
Here I am a few years later and guess what? No more pins-and-needles feelings in my fingers. I haven't read any other literature covering this type of sleep-related injury, but I know it exists and I'm sure there are others who suffer needlessly.