As disable_statement_timeout won't work through PgBouncer, we need to run duplicates check based on table size for safeguard.
disable_statement_timeout
PgBouncer