1709 Index column size too large. The maximum column size is 767 bytes

I’m trying a fresh installation of Matomo 4 beta2.
The following error pops up during database creation

SQLSTATE[HY000]: General error: 1709 Index column size too large. The maximum column size is 767 bytes.

My default collation is utf8_unicode_ci, matomo creates tables as utf8mb4_general_ci. The engine used is InnoDB.

Some settings:
innodb_large_prefix ON
innodb_file_format Barracuda
innodb_file_format_check ON
innodb_file_format_max Barracuda
innodb_file_per_table ON

The installscript does not complain about my environment.

Any suggestions?

ALTER TABLE tablename ROW_FORMAT=DYNAMIC

did the trick!