Possible positional fault during sleeping
Next Steps
use ice packs/Hot water bag in painful area and try possible movements without hurting your pain.Dont use it directly over back of neck use it in upper back just below the neck.
Health Tips
Avoid using high pillows(recron pillows preferable).If Pain persists or worsens consult a nearby Musculoskeletal/Manipulative physiotherapist