I'm on my fourth job in four years. First company was a startup that went under, other two I immediately realized I wasn't a good fit but I stayed for about a year each, gave it my all, then resigned with peace of mind. Salary was never an issue. Now I'm at a startup again -- I'm happier than ever, wouldn't leave this job for the world, but we're on shaky ground and the recession might sink us despite our best efforts. So in 2023 that might be 5 jobs in 5 years.
I don't think I'm the outlier. I've only met one person that does legitimate "job hopping", and you can tell from talking to them that something's off. Most of the time people switch jobs for good reason. Disqualifying someone based on that means you're either an Ivy League kid that never got their hands dirty, or you just think you're a rare enough exception that the rule still holds.