add max width to error messages