In certain scenarios the validator from the jsonschema package doesn't work in the browser out of the box, without additionally installing a polyfill (tdegrunt/jsonschema#367), because it only supports Node.js (tdegrunt/jsonschema#383 (comment)). This is an issue that I encountered in a project using Vite.
It also appears this library is the slowest one available - see https://github.com/ebdrup/json-schema-benchmark.
Without doing much research, my initial recommendation would be to switch to https://github.com/ajv-validator/ajv.