がそんなことをしたはずがない

there's no way [someone] did such a thing

→ が
phrase Rare #41,671
there's no way [someone] did such a thing Expresses strong disbelief or certainty that someone did not do something. The person before が is the subject, and そんなこと means “such a thing.”
JA: 彼がそんなことをしたはずがない。
EN: There's no way he did such a thing.

彼女がそんなことをしたはずがない

She couldn't have done such a thing.

がそんなことをしたはずがない

He couldn't possibly have done such a thing.

マイクがそんなことをしたはずがない

Mike couldn't have done such a thing.

その女の子がそんなことをしたはずがない

That girl couldn't have done such a thing.