Pain at night is something I'm awfully familiar with too. My intuition about the cause is similar to what Ellen said: stuff from the unconscious attempts to rise up, and must be pushed away by physical symptoms. Strangely enough, when I was in the beginning of my last worst ever TMS attack...