A low-overhead software method to mitigate the impact of multi-qubit burst errors, such as those caused by cosmic rays, on surface code magic state factories.