Mismanaged firms like WeWork are going bankrupt, markets like San Francisco are suffering a 30 percent vacancy rate, and companies like Dropbox are paying tens of millions of dollars to reduce office space.