example 1 is indeed stating there are too many connections to the SQL Server and is a message from your MySQL server.
Example 2 appears to be a PHP8.3 error counting the size of an array when a PM is sent which we'll get added to the list of PHP8 errors