頭が痛い(あたまがいたい)

Japanese vocabulary

Meaning: having a headache; racking one's brains; troubling over something

See it used in real works