There have been a few times this question has come up:
Also from knex itself:
And Stack overflow:
Short answer is you may need to tweak your pool settings which can be found here: https://strapi.io/documentation/developer-docs/latest/concepts/configurations.html#database