Uprooting people's lives, including that of US nationals (10 years is long enough to meet someone and have kids, even people that do not have a US citizenship or permanent residence either) is not humane. Visa holders have since 2017 a 60 days "grace period" in which H1B Visa holders have to find a new job, while L1 visa holders have that time to pack up and leave.
source: current resident alien
Edit: Quick googling to double check myself and it seems you're right in that USCIS indeed doesn't use that wording, which I must be getting confused with some other term they use in some form, or some other agency, or I'm just plain wrong and got the IRS wording internalized with something else.
Resident alien is synonymous with lawful permanent resident or green card holder, however nonresident alien is a tax term.
More seriously, while this particular discussion centers around US visas, obviously the analogous arguments apply to other countries as well.
Essentially you are stating everyone who loses a job in the U.S. should leave the US.
Or alternatively you want to draw a line when the good immigrants are allowed to enter after which are the bad immigrants. And I’m sure that conveniently that line will ensure your family becomes part of the good immigrants.
First-generation immigrants are folks who are born outside the US and naturalize. "In the United States, among demographers and other social scientists, 'second generation [immigrants]' refers to the U.S.-born children of foreign-born parents."
Not in the strictest sense, but it's not the bright line you're making it out to be either.