I have been able to reproduce the error on a context with extremly high concurrency and with table metadata not loaded yet.
I had to spawn 100 concurrent processes running a query against a table that hasn’t received query from the satrt of database, so the calcite process has been asked to read the metadata of table from disk (I use an extremly fast storage so it’s unlikely that disk performance is causing the problem).
Running the same 100 processes against a table queried before (different query, so the new query has been parsed by calcite) run flawlessy, so assuming the problem is the concurrent metadata reads causing your problem, you could try to run some simple warmup queries at server startup to force the caching of tables metadata.
You can set the db-query-list parameter to point a file containing query that will be run at server startup; a simple select count(*) from table would force the read of table metadata
Hopes this help