Trazodone
insomnia
"TRAZODONE, gives nasty neck & headaches to some & I am one who cannot tolerate trazodone.

I had taken it for two different days with exact same results.  It helped to fall asleep but only a few hours in does the headaches & neck pain woke me up."