I definitely suffer from these. Try to limit your caffeine intake, stay as rested as possible and drink plenty plenty plenty of water. Also your headaches might be caused by the continuous strain on your eyes, so seeing an optical specialist might help.