Hello SeaTwinMa,
Thank you for using Apple Support Communities. We want to help you get access to your keychain passwords without your Mac freezing up on you. Allow us to assist and recommend some steps to help out. First, make sure that you install any pending updates that might be available of your Mac. Updates do include various fixes. Just in case, this resource can show you how to update your macOS: Update macOS on Mac - Apple Support
If you're already fully updated, then test this issue in safe mode. This step can help isolate possible software related issues: How to use safe mode on your Mac - Apple Support
Apple silicon
1.) Shut down your Mac.
2.) Turn on your Mac and continue to press and hold the power button until you see the startup options window.
3.) Select your startup disk, then press and hold the Shift key while clicking “Continue in Safe Mode.”
4.) Log in to your Mac. You might be asked to log in again.
Intel processor
1. Turn on or restart your Mac, then immediately press and hold the Shift key as your Mac starts up.
2. Release the key when you see the login window, then log in to your Mac.
3. You might be asked to log in again. On either the first or second login window, you should see ”Safe Boot” in the upper-right corner of the window.
Depending on your results, follow the steps under “If the issue continues in safe mode” or “If the issue doesn't continue in safe mode”.
We hope these steps help you out. Thank you for using Apple Support Communities. Take care.