There are many possible causes of scalp pain when you sleep: 1. It may be due to spasms in the blood vessels of the scalp, which can be restored to normal with a little rest. 2. It may be caused by a cold when sleeping at night, causing scalp pain, which can be relieved by applying local heat. 3. The most common is the pain caused by scalp neuritis, scalp neuritis is manifested as scalp pain, can not be touched by hand. 5, there may also be because of high work pressure or poor sleep quality, or sleep at night when the hair is seized tight for a long time. If the symptoms are more serious, it is recommended to go to a regular hospital for further examination to determine what causes the scalp pain, and then corresponding treatment.