No local video support in the React app

I am building a project in which I used the video background in react but the server immediately pauses when the video loads and gets the error listed below. Additionally, I attempted to resolve this issue using two separate libraries, but nothing worked. getting the same continues. If you know anything about it, kindly comment.
throw er; // Unhandled ‘error’ event

TypeError: Cannot set property closed of # which has only a getter
at FsReadStream.close (C:x
at FsReadStream._destroy (C:\x\node_modules\memfs\lib\volume.js:2032:10)
at _destroy (node:internal/streams/destroy:109:10)
at class_1.destroy (node:internal/streams/destroy:71:5)
at class_1. (C:\x\node_modules\memfs\lib\volume.js:1962:22)
at class_1.emit (node:events:539:35)
at endReadableNT (node:internal/streams/readable:1344:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted ‘error’ event on class_1 instance at:
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)```