The generalized Schur (QZ) decomposition failed!

This is almost surely a timing error. I would focus on debt holding D and the way the are split across sectors. The logic in [Timing of capital in two sector economy) might apply.