Google turns off "less secure access" periodically, seemingly at Random. Have you tried turning it back on? I had to do that last week. After May 30th I'll either have to figure out how to get app passwords to work, or switch to Telegram for my notifications.
Edit: or find a new Email provider for my alarm system account. I'm looking into outlook.com and GMX mail.