Common Liquidity Shocks and Market Collapse: Lessons from the Market for Perps