NXP-12876: fix Box custom error handler