Earlier quoted context omitted.
Why are you perpetuating the myth that frequent switching of jobs is somehow detrimental to your career? Maybe that's true for corporate megacorp, but in the startup world I feel it's par for the course. At least all the best engineers I've worked with never stuck around long.
As someone who has done a lot of interviewing and hiring, I can say that frequent switching of jobs is a negative and a red flag in general. If you had a business, would you want to hire someone who is probably going to jump to another job in a few months?
For contractors, it's obviously somewhat different - but speaking from experience, many short contracts tend to get extended, so someone who has a raft of 1-2 month contracts and very few longer ones might be a bit of a risk. (Obviously some contracts are intentionally short - but I would definitely describe a very short contract on my CV as being more of a "project" than an actual contract.)