I had problems a lot like what you're describing for a while. But when I found the right pillow, the problems went away. I found that I had to use a thin pillow, which kept my head more in line with my body. I hope you figure out what it is that is causing your neck pain. Good luck and best wishes!
Idealist