Hello,
dovecot --version
2.3.17 (e2aa53df5b)

debug log:
Debug: duplicate db: transaction: Too many duplicate IDs locked
Debug: duplicate db: transaction: Check ID: too many IDs locked

-  .sieve with 100+ redirects ( 201 actually )

#define DUPLICATE_LOCK_MAX_LOCKS 100

It's not corresponding with
sieve_max_redirects = 310 or sieve_max_actions = 320

On dovecot 2.3.16 version DUPLICATE_LOCK_MAX_LOCKS is not implemented and redirects work correctly.

Thank you.
Vladimir Gulas.