My previous psk files are work on Raspberry pi 4, raspberry zero but at Raspberry pi 5, it is not work. For my preference, I do not use networ-manager instead I use ifupdown for managing network interfaces. While using, I face an error and after couple of configuration changes, i notice that it is realted to key_mgmt property.
To fix connection error, place key_mgmt=WPA-PSK-SHA256 inside your configuration