Did you get diagnosed that your headaches
is not recommended
these days due to several side effects like Cardiovascular and risks of Stroke. There are better medicines available than Topmac.
Yes you can avoid them by noticing what triggers your headaches for example light , noise , etc. and avoid it.
Take proper sleep and avoid stress.
And stop taking age old medicines when better options are available.
Contact me anytime at my email firstname.lastname@example.org