Join the club. This is a known error in some installations. But what causes it is still unknown. It is discussed n Github at https://github.com/PrestaShop/PrestaShop/issues/33524
A provisional solution is to apply a server_version variable yourself. See https://stackoverflow.com/questions/67934455/an-exception-occured-while-establishing-a-connection-to-figure-out-your-platform
You should change the file app/config/doctrine.yml. The top should look like this:
# Doctrine Configuration
doctrine:
dbal:
default_connection: default
connections:
default:
server_version: 8.0
driver: pdo_mysql
This server_version line is added. Note that it must be on top under "default:".