"...because not failing is not an option."
Do not solve hypothetical problems.
Musicians have instruments. Programmers have editors.
What code should be.