Each exchange protects your account from large liquidations under different conditions. This happens when you have a margin position that is bigger than the allowed that's defined in the exchange account. To handle this error, you will need to decrease the position size or change the threshold directly from your exchange account.
You can read about risk limit in BitMEX here: https://www.bitmex.com/app/riskLimits

Did this answer your question?