Try the 20-20-20 rule: every 20 minutes, look 20 feet away for 20 seconds. Also, use a standing desk or a kneeling chair, and do neck stretches and shoulder shrugs throughout the day. I’ve implemented these changes while working on https://qfinancevault.org and my back pain improved significantly.