のことが頭から離れない

can't get ... out of one's head

→ の
phrase Rare #39,065
can't get ... out of one's head のこと marks the person or thing being thought about; whose head it is depends on context.
JA: 昨日見た映画のことが頭から離れない。
EN: I can't get the movie I saw yesterday out of my head.

トムのことが頭から離れない。

I can’t get Tom out of my head.

君のことが頭から離れないんだ。

I can't get you out of my head.

彼女のことが頭から離れない。

I can't get her out of my head.

盗まれたお金のことが頭から離れない。

I can't stop thinking about the money that was stolen.