There are primary headaches that are not due to any underlying medical condition, and secondary headaches due to sinusitis, ear infection, head injury,
blood vessel or
brain tumor problem, cluster and tension headaches. The child might need an MRI head to rule out. Drugs like analgesics avoiding aspirin for reye’s syndrome, sumatriptan for migraines etc. consult a pediatric neurologist for appropriate advice. Hope this helps. Take care.