"Regular use of paracetamol, but not ibuprofen, was associated with a significantly higher risk of new-onset dementia in the old population, regardless of genetic risks of dementia."
I would not find surprising that chronic headache could be correlated with risk of dementia.