You made streaming backups and restoring with walg and now trying to make logical backups.
But some shit ruined your plans:
pg_dump: Dumping the contents of table "<table>" failed: PQgetResult() failed.
Many sites suggests to enable
postgresql.conf, but actually you need also increase
max_standby_streaming_delay. I set 1 hour.
Fortune cookie: Confucious say: man who sleeps with old hen finds it's better than pullet.