Quantifying backflash radiation to prevent zero-error attacks in quantum key distribution