My experience of working for a couple of FAANGs does not mirror this - while I was never laid off during a vacation, I think every vacation over 3 weeks I ever took, I returned to discover that my team had either suffered a major reorg, or the entire project was cancelled, and I had to find another team to work on.
Yep, I've taken several three-week vacations and it's never been a problem. The main thing is just giving plenty of advance notice (and reminding people as it gets close) so my manager can schedule around it, and making sure projects are in a good state with arrangements made for anything that needs covering while I'm out.
I have 5 weeks vacation and unlimited sick days every year.