Hi, thanks for writing to HCM.
As you are getting pain only during certain movements of the neck, it could be possibly due to a MUSCLE CATCH or due to IRRITATION OF NERVE
in the suboccipital region.
The simplest solution for your problem is to avoid the movements causing you pain.
If your symptoms are worsening over time or is annoying, consult an orthopedic surgeon for evaluation and management.
Hope this information is helpful. Good day