NXP-12876: fix custom error handlers and default Module Root error handler