Counterpoint: I have 11 YOE and am at my 6th company (not including freelancing), currently a Senior EM. I've been at my current role for less than 6 months, the place is a toxic nightmare, and have had no problem whatsoever getting interviews for senior IC and team lead positions. The longest I've been at any one role was just under 3.5 years, with most under 2 - basically the first time I asked for a promotion or raise and didn't get it, I'd leave.
Now, it's certainly possible that another 3-5 years and another 2-3 companies would negatively impact my ability to land interviews, but I haven't seen the slightest impact yet.