そんなことが

such a thing

→ そんな
phrase Uncommon #9,539
such a thing そんなこと means “such a thing” or “something like that”; が marks it as the subject.
JA: そんなことが本当に起こるの?
EN: Can something like that really happen?

そんなことが起こらないように気をつけるのは、君の務めだ。

It’s your responsibility to make sure that doesn’t happen.

そんなことが?

Really?

— ザ・マン・フロム・アース (2007)

どうやってそんなことができるのか、少し気になった。

I was a little curious how you could do something like that.

どうしてそんなことが 分かるんだ?

How could you possibly know that?

— ジョジョ・ラビット (2019)

そんなことがこの世で可能かと思う。

I wonder if something like that is even possible in this world.

いえ 人間だったら そんなことが できるはずがありません

No, a human being would never be able to do something like that.

— High and Low (1963)

彼女は、どうしてそんなことが可能なのかと尋ねている。

She is asking how such a thing is possible.

そんなことがどうやって?

How could that be possible?

— ネバーエンディング・ストーリー (1984)

昨日、そんなことがあったの?

Did something like that happen yesterday?

そんなことが本当であるはずがない。

That can't possibly be true.

そんなことが再び起こらないように気をつけます。

I'll make sure that doesn't happen again.