It could be cervical muscle spasm or spondylosis
Mainly occurs in software professionals who sit in front of computers
Next Steps
consult for x ray
physiotherapy to neck and isometric neck strengthening exercises
Health Tips
adjusting the posture of your laptop/computer
taking breaks to change posture while sitting imfront of your computer
avoid lifting heavy objects.