Quantum Error Correction, Quantum Computing.
detect them, remove their effects and update the state to make sure their results can’t tell anyone anything about our logical qubit. The only way for an unwanted measurement to happen is if a load of measurements happen all at the same time, and do so on a loop that goes through the doughnut.