My neck hurts from head banging. What can I do?

Stop head banging. The obvious answer is stop banging your head. If you have a problem therapy like learning self hypnosis or behavior therapy can help.