That's one of the reasons I decided to give up on hearing aids. Growing up, I had headaches/migraines at least five times a week, but I rarely took medicine. It wasn't because it wasn't that bad, it felt like hell and I suffered through it. I just always developed a tolerance for the medicine unless I took it only on rare occasions. I didn't want to have to keep taking stronger medication and risk all of the side effects that come with those.
Some people would tell me the headaches were caused by other things. They would say that it was because I had not eaten lunch (at 11AM) or dinner (at 3:30PM), I had not had enough water (I make sure to get enough water), I had not had enough sleep (after sleeping for 9+ hours that night), I had too much caffeine (the most I will drink is pop, no coffee, and that in moderation), etc.
I hope you are able to find your solution. You shouldn't have to just deal with the headaches and risk long-term side effects from medications.