そんな事を言うなんて

to say such a thing

→ そんな
phrase Rare #38,994
to say such a thing Expresses surprise, disbelief, or criticism about someone saying something. なんて adds an emotional sense such as “to think that...” or “how could someone...”.
JA: そんな事を言うなんて、信じられない。
EN: I can't believe you would say such a thing.

そんな事を言うなんて君は愚か

You're foolish to say such a thing.

そんな事を言うなんて彼女も思いやりがない

She’s inconsiderate to say something like that.

そんな事を言うなんて彼はどうかしてるに違いない

He must be crazy to say something like that.

そんな事を言うなんて気が変になったに違いない

You must have gone crazy to say such a thing.