Welcome to HCM,
It seems that you might have stiff neck
may be due to some pressure on neck muscles giving rise to this problem.
medicine with muscle relaxant
Within a day you will be alright.
You can apply some analgesic cream locally.
Do hot water fomentation.
Ok and bye.