there is a lot of market infrastructure and jurisprudence that exists specifically for this problem. Trades can and are canceled as the situation demands[0].
[0] https://www.theice.com/publicdocs/endex/ICE_Endex_Trade_Canc...
[0] https://www.theice.com/publicdocs/endex/ICE_Endex_Trade_Canc...