The best mitigation is negotiating strong contracts with significant penalties if the provider does not provide the services promised.
Its not like getting screwed over because a vendor changes its mine about fulfilling its obligations half way through is a new issue, this is just a bit of an exceptional case of that.
Penalties for non performance is like the most standard thing possible in a contract. Its hardly some unfair clause like you agree not to sue ever. Hell, even without a clause specificly stating penalties, you could still probably sue for damages from breaching a contract. (Obviously in the parler case amazon probably didnt breach, but if you are negotiating your own contract it probably wouldn't allow for arbitrary termination with no notice)