It seems like this is an incompatibility between psql and OpenSSL 3.2, which was released just last weekend, and because Homebrew updated its psql dependency to OpenSSL 3.2 it was the first to notice the incompatibility.
We’re working on fixing it in upstream PostgreSQL, and I believe Homebrew is also working on fixing their build of psql to fix this issue.