I agree with the previous person that replied to this.
if you are not able to work because of these headaches and you can get medical evidence to support that you are having headaches of this kind (and possibly evidence from your job you are a good worker but do to these headaches you cannot work a normal week).
I am not sure all of the proof that is needed but if you visit the
Social Security Website there should be information there. Also, you can call them but I am letting you know from my own experience, it is rare you get a person quickly (unless you call your local office).
I hope this is helpful to you and that you can get the support you need.