Since `ValidationErrorName` [gets dynamically reassigned during compilation](https://github.com/payloadcms/payload/blob/main/packages/payload/src/errors/ValidationError.ts#L11), we must reference the variable rather than use a static string to compare against Co-authored-by: Jayce Pulsipher <jpulsipher@nav.com>