The data directory was initialized by PostgreSQL version 12, 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