From Wiktionary, the free dictionary
Literally, “eat [up] [someone's] head”.
comerse la cabeza (first-person singular present me como la cabeza, first-person singular preterite me comí la cabeza, past participle comido la cabeza)
- (idiomatic, colloquial) to fret, worry