Dpi-1080 connection was closed by ORA-41409

I am getting below when I am running the application, if you restart the node app error will not come and everything works fine, this error occurs only few times. Dpi-1080 connection was closed by ORA-41409.
Poolsize: min: 2 max: 18
Iam using node js and knex and oracle
Versions:

Node: 16.20.0
Knex: “^2.4.2”
Oracledb: “^5.1.0”

I should not get any connection related issues and application should work fine