Additional uncaught exception thrown while handling exception.

Original

PDOException: SQLSTATE[HY000] [1040] Too many connections in Drupal\Component\DependencyInjection\PhpArrayContainer->createService() (line 77 of /opt/drupal/web/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php).

Drupal\Component\DependencyInjection\PhpArrayContainer->createService() (Line: 179)
Drupal\Component\DependencyInjection\Container->get() (Line: 226)
Drupal\Component\DependencyInjection\PhpArrayContainer->resolveServicesAndParameters() (Line: 60)
Drupal\Component\DependencyInjection\PhpArrayContainer->createService() (Line: 179)
Drupal\Component\DependencyInjection\Container->get() (Line: 576)
Drupal\Core\DrupalKernel->getCachedContainerDefinition() (Line: 966)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 515)
Drupal\Core\DrupalKernel->boot() (Line: 739)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Additional

Error: Class "Drupal\error_page\ErrorPagePhpErrorLogger" not found in Drupal\error_page\ErrorPageErrorHandler::logError() (line 179 of /opt/drupal/web/modules/contrib/error_page/src/ErrorPageErrorHandler.php).

Drupal\error_page\ErrorPageErrorHandler::logError() (Line: 102)
Drupal\error_page\ErrorPageErrorHandler::handleException()