When the body gets ready to sleep, your body position, temperature, hormone levels, and metabolism start to adjust. It may increase the pain.