Access to the top level domain was restricted temporarily when using MAIL app. More than max connection active

Hi,
I was using mail client today and noted that on clicking of show images for an html mail received, the website stopped working. Infact the access to the top level domain was restricted temporarily. I checked the logs and found out
Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[42000] [1203] User agarwegg_next821 already has more than ‘max_user_connections’ active connections in /home/agarwegg/public_html/files/lib/private/DB/Connection.php:64 Stack trace: #0 /home/agarwegg/public_html/files/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect() #1 /home/agarwegg/public_html/files/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion() #2 /home/agarwegg/public_html/files/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform() #3 /home/agarwegg/public_html/files/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform() #4 /home/agarwegg/public_html/files/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2) #5 /home/agarwegg/public_html at /home/agarwegg/public_html/files/lib/private/DB/Connection.php#64

Also, today when I reinstalled the Mail app, I got this error Invalid argument supplied for foreach() at /home/agarwegg/public_html/files/lib/private/Installer.php#404

Error after the access is restored:
GuzzleHttp\Exception\RequestException: cURL error 3: <url> malformed

  1. /home/agarwegg/public_html/files/3rdparty/guzzlehttp/guzzle/src/RequestFsm.php - line 103:GuzzleHttp\Exception\RequestException wrapException(Object(GuzzleHttp\Message\Request), Object(GuzzleHttp\Ring\Exception\RingException))
  2. /home/agarwegg/public_html/files/3rdparty/guzzlehttp/guzzle/src/RequestFsm.php - line 132:GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction))
  3. /home/agarwegg/public_html/files/3rdparty/react/promise/src/FulfilledPromise.php - line 25:GuzzleHttp\RequestFsm->GuzzleHttp{closure}(*** sensitive parameters replaced ***)
  4. /home/agarwegg/public_html/files/3rdparty/guzzlehttp/ringphp/src/Future/CompletedFutureValue.php - line 55: React\Promise\FulfilledPromise->then(Object(Closure), NULL, NULL)
  5. /home/agarwegg/public_html/files/3rdparty/guzzlehttp/guzzle/src/Message/FutureResponse.php - line 43:GuzzleHttp\Ring\Future\CompletedFutureValue->then(Object(Closure), NULL, NULL)
  6. /home/agarwegg/public_html/files/3rdparty/guzzlehttp/guzzle/src/RequestFsm.php - line 134:GuzzleHttp\Message\FutureResponse proxy(Object(GuzzleHttp\Ring\Future\CompletedFutureArray), Object(Closure))
  7. /home/agarwegg/public_html/files/3rdparty/guzzlehttp/guzzle/src/Client.php - line 165:GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction))
  8. /home/agarwegg/public_html/files/3rdparty/guzzlehttp/guzzle/src/Client.php - line 125: GuzzleHttp\Client->send(Object(GuzzleHttp\Message\Request))
  9. /home/agarwegg/public_html/files/lib/private/Http/Client/Client.php - line 138: GuzzleHttp\Client->get(NULL, Array)
  10. /home/agarwegg/public_html/files/apps/mail/lib/Controller/ProxyController.php - line 124:OC\Http\Client\Client->get(NULL)
  11. [internal function] OCA\Mail\Controller\ProxyController->proxy(NULL)
  12. /home/agarwegg/public_html/files/lib/private/AppFramework/Http/Dispatcher.php - line 161:call_user_func_array(Array, Array)
  13. /home/agarwegg/public_html/files/lib/private/AppFramework/Http/Dispatcher.php - line 91:OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Mail\Controller\ProxyController), ‘proxy’)
  14. /home/agarwegg/public_html/files/lib/private/AppFramework/App.php - line 115:OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Mail\Controller\ProxyController), ‘proxy’)
  15. /home/agarwegg/public_html/files/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:OC\AppFramework\App main(‘OCA\Mail\Contro…’, ‘proxy’, Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
  16. [internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
  17. /home/agarwegg/public_html/files/lib/private/Route/Router.php - line 297:call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)
  18. /home/agarwegg/public_html/files/lib/base.php - line 999: OC\Route\Router->match(’/apps/mail/prox…’)
  19. /home/agarwegg/public_html/files/index.php - line 42: OC handleRequest()
  20. {main}