Stress is one thing that most businesses should learn to codify. I made a lot of stupid little coding mistakes when my dad was dying, and I failed to realize how stressed I was until after he had passed.
OTOH, when I was under unrealistic scheduling pressure at a previous job, I knew I was really stressed. How poor was my and my colleagues performance then? Probably on par.