I think you get this error because Barman 2.12 does not support PG 13, and here's why - with PostgreSQL 13 wal_keep_segments is replaced by wal_keep_size.