So then the OP should ask.
I think they will find the company situation does matter, as does their relationship with them.
The only voluntary layoffs I have seen was when the company was already committed to doing some layoffs.
Generally this is not a thing you get to choose nor something you can engineer.
If you live in SV and the next job is paying crazy money it might not be worth it, as hanging around trying to get a payout is an opportunity cost. But in some circumstances it is worth considering.