There are countless checks and balances built into the system to prevent anything like this from happening:
- voter canvasses
- pre/post election machine testing
- risk limiting audits
- party officials, journalists, analysts, etc watching ballot counts.