This is good advice for contract workers, but is not applicable for the vast majority of "at will" W-2 employees in the US, where terms of employment can be amended ... at will.
If you can say, "They made a huge change to the terms of my employment. See? Right here, when they hired me, it said 100% remote role," then they're still on the hook for the charge even though you "voluntarily" quit.
(Source: Spent a couple years adjudicating UI claims early in my career.)