Cryptocurrency exchanges employ a mechanism known as auto-deleveraging (ADL) to manage risk and prevent losses. When a trader's margin falls below required levels, exchanges automatically liquidate their positions. Additionally, exchanges may liquidate positions of profitable traders to ensure they do not incur losses themselves. This process helps maintain the financial stability of the exchange during volatile market conditions.