The supply-chain-software company Flexport—not long ago one of the nation's hottest startups, with a valuation of $8 billion—has shed an estimated 80% of its value and is seeing an exodus of executives, including chief legal officer Chris Ferro.