Try to find the trigger for the headaches. It may be stress related, lack of sleep, light sensitivity, some eyesight issues (opticians often don't check up-close vision for teens and young adults), too much screen time, lack of food, dehydration...etc....
When you find when do you have them the most you can then resolve the issue.