Cobra enables continued healthcare, many states have unemployment benefits, and I believe in all cases (?) you have some number of days to get a new visa sponsor.
The max unemployment benefits for any state is not going to cover much of anything, you better have savings to fall back on.
And for those on H1B, there is a 60 day grace period. Maybe in 2021-2022 it was extremely easy, but today? A lot of people will be lucky to get through a full interview loop in that time.
Most of the world (which isn’t the U.S. or Europe) is even worse.
I have no clue how unemployment works. I don't think I've ever paid into it?