Truncate error messages to the field length.