The data directory was initialized by PostgreSQL version 9.4, which is not compatible with this version 13.0 code example
Example: database files are incompatible with server
brew postgresql-upgrade-database
brew postgresql-upgrade-database