Signing in on Google can be a real pain, especially if you use 2-factor authentication or haven’t enabled account access for less secure apps. You might even need to generate a special app password to sign in via KDE Online Accounts.
I strongly recommend that you follow the steps listed here:
Less secure apps & your Google Account - Google Account Help