A lot of these compensation packages are well intended, but they aren't without problems. People who make bad decisions often get performance bonuses regardless.
"CEO earns 10x less than previous year due to declining stock price linked to market share loss" is not a headline to set pulses racing. Performance linked comp works OK most of the time. Sometimes CEOs negotiate deals that are terrible for the company, where they get paid lots even if the firm tanks. My experience has been that this usually happens when the firm is in deep trouble anyway, the CEO knows they probably can't turn it around, but will have a tarnished reputation regardless. Getting experienced people to try and turn the Titanic is expensive and many will want a big reward for even trying.
Also, badly run companies do things like sign bad deals. But it's a circular problem. If they were well run they wouldn't be signing bad CEO deals to begin with.
https://www.nytimes.com/2009/07/31/business/31pay.html
https://www.cbsnews.com/news/16b-of-bank-bailout-went-to-exe...
https://www.sanders.senate.gov/newsroom/must-read/banks-paid...
I had to search for this excellent clip from Margin Call, which explains this better than I could: https://www.youtube.com/watch?v=2f2kGHcdJYU