This can be enforced by pre-commit, but correct it separately to make it easier to review.
Add max stack usage tracking, visible via debug module ustack. Add separate cpp flag for enabling modules: MICROPY_DEBUG_MODULES