You are trying to dump a Postgres 13.0 version instance using the 12.4 version of pg_dump. That will not work as the error says. You need to find and use the 13.0 version of pg_dump and use that. FYI, it will work the other way e.g. a newer version of pg_dump can dump an older version of Postgres.