Undefined binding(s) detected when using sendConfirmationEmail

With Strapi 4.4.5,

I have the same problem with lifecycles, when I delete an element that uses a component it works, but I get the exact same error.

error: Undefined binding(s) detected while compiling WHERE. Undefined column(s): query [t0.id]: where "t0".."id" =?
Error: Undefined binding(s) found while compiling WHERE. Undefined column(s): query [t0.id]: where "t0".."id" =?
    at QueryCompiler_PG.toSQL (...../node_modules/knex/li ....

Upgrading to v4.5.1 fixed the issue.