If you have money in your perps account, transfer it to your spot account.

That way you can't lose money trading on leverage

Hyperliquid