I hop every year and my salary has only gone up. Done it 5 times now and nobody bats an eye
5 jobs in 5 years is a red flag for some. 5 in 5 years plus a single 4-year long stint where you earned a promotion is a much better story IMO, but every hiring manager is different and plenty make the change every 12-18 months work for them.