The insurance fund is designed to prevent bankruptcy. When liquidation happens, insurance funds are charged.
Insurance fund = [Loan amount + Interest + Penalty Interest (if overdue payment) ] * insurance fund ratio
The insurance fund will be charged from liquidated positions.
When prices drop sharply, the margin is not enough for repayment, so the insurance fund will be used to repay the funding partner's loan.