I quit and travelled for 3 months back when I was 29. Best thing ever.
I don’t think it set me back in terms of early retirement at all, as it allowed me to move industries which led to a higher salary later on. If anything I possibly wish I had taken more time off work when I was younger, but it is definitely a balancing act to take off as much time as possible without hindering your career or hindering savings. I have no regrets.
I managed 3 months off at 29 and another 3 months off at 36. I am now 46 and will take an indefinite amount of time off from the end of this year. Maybe permanent time off, but at least 6 months.
Enjoy your travels, and best wishes for the next segment of your career.