This might be due to muscle spasm , if u neck muscle get compressed u perhaps have pain in ur arm shoulder , and nerve nerve get compressed so easily
So don't worry
Next Steps
hot formantation , no over activity of neck
check ur posture while working (ergonomic)
Health Tips
u can consult a physio near by ur area ,
physio much needed.