I have the same error on a fresh installation, I tried them on Ubuntu Server 24.04 and Rocky Linux 9. I get the same error. To update it works fine:
17:03:37 [error] 20603#20603: *649 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key “collate” in /var/www/html/openemr/setup.php on line 1129; PHP message: PHP Fatal error: Uncaught TypeError: Installer::collateNameIsValid(): Argument #1 ($name) must be of type string, null given, called in /var/www/html/openemr/setup.php on line 1129 and defined in /var/www/html/openemr/library/classes/Installer.class.php:177
Other post, same error: Open EMR 7.0.4 Fresh installation SQL issue - #4 by mkm1971