Run the failing command with the intended named profile explicitly selected.

Check the profile SSO settings: start URL, SSO region, account, and role name.

Remove the cached SSO registration and session files under the AWS config cache for that profile.

Run a fresh SSO login for the profile and complete the browser sign-in.

Retry the original command in the same shell.

If refresh still fails, check the system clock and any proxy that could block the SSO token endpoint.