In the case of Twitter, the new owner has thoroughly broken the advertising business and is trying to aggressively pursue a new version of the data business Twitter once had-- E.g. Google's Caffeine, which Twitter also eventually lost https://searchengineland.com/google-search-algorithm-change-... ... The statements about "too many scrapers" are almost certainly as illegitimate as the previous pre-acquisition statements about "too many bots."
The nature of business is that there's no judiciary or referee... the purpose of a business is to make money. Tech businesses just happen to hire lots of academically-oriented engineers who developed their skills in a different environment. It's possible to build a culture of "fairness" in a business, but at the end of the day even Google dropped "don't be evil."
Я, Unless your visa is sponsored by your employer.
And it's a tough market where 5% of IT engineers across the board have recently been let go.
Even non visa holders at Twitter have had to wait it out, sometimes months, until a suitable job was found.
The OP is fundamentally wrestling with an issue of justice, but the bottom line is that in business there is no punishment for stupid. There is only reward for profit.
Detaching myself emotionally from my employer was one of the best things I've ever done for my mental health. When I was young I got upset when "the company" made bad decisions. Now I feel no negative emotion about it, sometimes I laugh at them.
My recommendation is to recognize the stock options, bonuses, etc. as the emotional manipulations they are. Either perform the tasks or don't, but try to avoid getting emotionally bogged down in it. Instead, lift your head up and look around at the broader economy and make your decision based on that. Most of the time the fastest path to a promotion, higher income, etc. is to leave.
The better place to seek emotional fulfillment and validation is at home with your family.