Other causes of secondary cough headaches include: Miscellaneous posterior fossa lesions, which is a type of brain tumor . Obstructive hydrocephalus , or an excess buildup of fluid in the brain.
https://www.medicalnewstoday.com/articles/head-hurts-when-i-cough