It seems like everyone agrees that it's not really a problem to take off half a year or even a year. I'm curious: Are there people who have taken longer breaks? What were the consequences for the careers?
That was a non-programming career though. For programmers that can pass a leet code style it's different. You probably could take a dump on a recruiter's desk and still get a job.
But, IMHO, it's wise to get 2-3 years of experience before taking significant time off. At that point you're solidly out of junior/entry level roles and into experienced hires.