You are requiring a password but not configuring psql to send one. Either change the psql invocation or don't require a password - via peer, not trust.
When I set the database administrative login by Unix domain socket authentication to md5 or scram-sha-256, it gives the above error in status, but setting it to trust is a compliance issue.
Most people use "peer".
Here is the relevant configuration in the pg_hba.conf file:
# Database administrative login by Unix domain socket
localallall md5
# TYPE DATABASE USER ADDRESS METHOD
# "local" isfor Unix domain socket connections onlylocalallall
scram-sha-256
The second one is unused. And since you want scram it is actually the one you should be using.
You are failing to show any context surrounding the psql connection attempt producing the failure. You need to track that down and either fix it or show the context when asking for further help.