I've tried just persisting through them but never lasted more than 2 weeks. Though every few months, they'll stop for maybe a week, and then come back. Caffeine makes them less bad, which is annoying because I don't like the energy swings, but every time I give up caffeine the headaches get worse (not just immediately after, but even a month after)