Database connections exceeded

Hi guys, i got on multiple instances of OC v4 strange error, based on max connections to database. I knew, it is a thing of shared hosting policies etc, but, there is probably some leak or underlying problem inside octobercms, that not close connections correctly in some circumstances.

im not able to find correct problem, because i think it is PDO based… but, i think there is problem with dashboard that may be a performance problem.