I experienced it once, and only users saw this error—admins could log in normally.
I conducted a search and discovered that the reason why the error was being displayed to regular users was because I had added certain categories to the home page, but one of them was hidden.