Etymology
Today it means: A headache, especially one apparently resulting from thinking hard or being puzzled. Full definition →
From brain + ache.
Etymology from Wiktionary, CC BY-SA 4.0.