Hey man, Sorry to hear about the headaches.
Have you figured out a triggering factor for your headaches? Sometimes there is no obvious cause, but sometimes you can identify a pattern (e.g. I get headaches when I do work requiring intense focus when I haven't slept properly the night before)
If you get these headaches when you sit down to work, do you need glasses? Have you seen a doctor about your eyesight before?
There could be many causes for the headaches and if they happen this regularly I'd get a check up done just to be on the safe side.
For symptomatic relief: Take either a Tylenol or Advil and lie down in a dark room with your eyes closed.
Hope you feel better soon.