Hi
It's because of spasm in cervical muscles. Because of your nature of work, your muscles needs to have more strength as you have to keep your neck in same position for long time. This causes fatigue of neck muscles.
Next Steps
You should do neck stretching and isometric exercises. You should take over the counter muscles relaxant for two weeks.