U know the reason. So try changing ur posture frequently. Being for long duration in any posture will cause pain sooner or later..
Next Steps
Do hot fomentation.
Take adequate amount of sleep
Health Tips
Keep changing ur posture frequently.
Do some neck mobility exercises after every hour or two.
Half of the problem will be resolved.
If it doesn't, get it checked by a nearby physio.