Validate error format before parsing