You may want to check the package-lock.json to see which version of the mongodb dependency is being used. MongoDB (server) 6.0 removed support for legacy opcodes (such as OP_QUERY), so if you’re getting this error you’re using a version of mongodb that predates support for MongoDB (server) 3.6.
Based on the stack trace it also looks like you’re using the driver from within Keystone, so you may need to check the dependencies there …