Intercepting system calls seems like the easiest way (I expect most of these failures are in I/O). Use LD_PRELOAD to easily hook the libc wrappers, for (almost) anything C-based.
Deeper simulation is possible, but this should get you the low-hanging fruit.
Deeper simulation is possible, but this should get you the low-hanging fruit.