Hi there, thanks for asking, this type of headaches
are called migraine
. If the frequency of the attacks are so high, it is better that you take a medication regularly. there are some medications which can prevent the attacks and most of them are safe. Beside that, you can take some medication whenever any attack is starting and it can prevent its progress. The doctor will examine you and will write the best medication upon your situation for you. Best wishes.