Chronic issues take time to resolve. Seeing a good gastroenterologist is important.
Yes, mood could also bring about issues. Dont only consider taking medication but also consult a psychologist who look at coping strategies.
Are there any other symptoms, like onesided headaches, discomfort on exposure to light or some other things that suggest migraine.
Also is it linked to specific food. Does changing diet help...
Next Steps
taking breaks in between work every 40 minutes would be a start with posture related issues. This would need assessment...