How to fix pg_dump: error: connection to server was lost in PostgreSQL | DevErrors