In short, the SQL client you are using to access your database (e.g. psql, Dbeaver, PGadmin, etc.) must have updated libraries to support PG12.
This error message is specific to psql, and can be corrected by upgrading psql.
Please see this link to Stack Overflow with a bit more context.