If the Scantron system detects that the ballot is spoilt and returns it to the voter, there’s much less of a problem of ambiguous ballots - particularly if the Scantron is set to favour falsely rejecting ballots rather than permissively accepting them.
The other critical thing that’s needed is risk-limiting audits done routinely on all electoral contests.