[Fixes #81642494] custom error handler for mongo mapper