SQLite error when adding Custom API token to Strapi

I found out what my issue was. I had to delete the pool setting from my database config:

const path = require("path");

module.exports = ({ env }) => ({
  connection: {
    client: "sqlite",
    connection: {
      filename: env(
        "DATABASE_FILENAME",
        path.join(__dirname, "..", ".tmp/data.db")
      ),
    },
    useNullAsDefault: true,
    pool: { //removing this pool setting fixed my issue
      min: 2,
      max: 10, 
    },
    acquireConnectionTimeout: 100000,
  },
});

deleting the pool object solved my issues:

this is the current state which works fine:

const path = require(“path”);

module.exports = ({ env }) => ({
connection: {
client: “sqlite”,
connection: {
filename: env(
“DATABASE_FILENAME”,
path.join(__dirname, “…”, “.tmp/data.db”)
),
},
useNullAsDefault: true,
acquireConnectionTimeout: 100000,
},
});