Dictionary / Vocabulary / 頭をよぎる
あたまをよぎる
to cross one's mind; to be reminded
Also written 頭を過ぎる
一抹の不安が頭をよぎる。
A hint of anxiety crosses my mind.