Failed to connect to the database: Invalid platform version "5.5.5-10.3.31-MariaDB-0+deb10u1" specified

Hallo,

want clear trashbin with
sudo -u www-data occ trashbin:cleanup --all-users

this is the result:

type or pPHP Warning:  preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /var/www/nextcloud/lib/private/DB/ConnectionFactory.php on line 246
PHP Warning:  preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php on line 178
An unhandled exception has been thrown:
Doctrine\DBAL\DBALException: **Failed to connect to the database: Invalid platform version "5.5.5-10.3.31-MariaDB-0+deb10u1" specified.** The platform version has to be specified in the format: "^(?:5\.5\.5-)?(mariadb-)?<major_version>.<minor_version>.<patch_version>". in /var/www/nextcloud/lib/private/DB/Connection.php:72
Stack trace:
#0 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1449): OC\DB\Connection->connect()
#1 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(892): Doctrine\DBAL\Connection->getWrappedConnection()
#2 /var/www/nextcloud/lib/private/DB/Connection.php(202): Doctrine\DBAL\Connection->exec
aste code here

How can I resolve it? It that a consequence of the I cant access to nextcloud with error:
Keine Verbindung zu Nextcloud - Server hat “500 Internal Server Error auf GET https://mycloud.lan/status.php geantwortet

Greetings

after install/reinstall new php7.4 on Raspbian ; it’s working; perhaps any file are missing or was corrupted ???

sudo apt install php7.4 php7.4-cli php7.4-common php7.4-curl php7.4-gd php7fg.4-intl php7.4-json php7.4-mbstring php7.4-mysq
l php7.4-opcache php7.4-readline php7.4-xml php7.4-xsl php7.4-zip php7.4-bz2 libapache2-mod