Turn on two-step verification for Google sign-in. See the Google help document Turn on 2-step verification for more details.
Generate an app-specific password for Lightroom. See the Google help document Sign in using App Passwords for more details.
In Lightroom, enter the app-specific password you generated and try to validate your Gmail account.