PostgreSQL - getting Too many client repeatedly
Your application has a connection leak.
There is no way to fix this on the database side - you'll have to change the application so that it closes connections again.

I guess you set max_connections so high to work around this problem (1000 is too high).