I read the following statement from Google support:
To help keep your account secure, from May 30, 2022, Google no longer supports the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password.
Observe the date that Google implemented the change, May 30. It was just two days later that you posted a description of your email problem. Google also stated that Google Workspace account are not affected by the change.