Trying to find out how to handle crypto custom data with extremely low prices, like $0.0000000001 and whatnot. I'm getting Error executing margin models: Value was either too large or too small for a Decimal.

I have made sure to round orders to a few significant digits and make sure our holdings never have more than a few significant digits, but to no avail. Even if I just use 2 significant digits, I still get that error.

-
-
-
-
-
Here are some logs:

20250305 15:02:17.315 TRACE:: Debug: ORDER TICKET ISSUE DETECTED: Sell order for CHILI
 OrderId: 8736
 Status: New
 Symbol: CHILI
 Quantity: -170000000000000
 Order Direction: SELL
 Order Value: $19,433.07
 Security Price: 0.0000000001143122
 -- HOLDINGS INFORMATION --
 Current Holdings: 490000000000000
 Holdings Value: $56,012.98
 Average Cost: 0.0000000000784707949178835979
 Unrealized Profit: $17,562.29
 -- ORDER DETAILS --
 AverageFillPrice: 0
 QuantityFilled: 0
 Time: 3/2/2024 1:00:00 AM
 HasOrder: True
20250305 15:02:17.315 TRACE:: Debug:   ORDER EVENTS:
20250305 15:02:17.315 TRACE:: Debug:     Event:
     OrderId: 8736
     Id: 1
     Status: New
     FillPrice: 0
     FillQuantity: 0
     Message: Error executing margin models
     Quantity: -170000000000000
-
-
-
-
-
-
-
Full error:

20250305 15:02:16.277 ERROR:: BrokerageTransactionHandler.HandleSubmitOrderRequest():  System.OverflowException: Value was either too large
or too small for a Decimal.
  at System.Number.ThrowOverflowException(TypeCode type)
  at System.Decimal.DecCalc.ScaleResult(Buf24* bufRes, UInt32 hiRes, Int32 scale)
  at System.Decimal.DecCalc.VarDecMul(DecCalc& d1, DecCalc& d2)
  at QuantConnect.Securities.BuyingPowerModel.HasSufficientBuyingPowerForOrder(HasSufficientBuyingPowerForOrderParameters parameters, OrderTicket
ticket, Nullable`1 freeMarginToUse, Nullable`1 initialMarginRequired) in Common/Securities/BuyingPowerModel.cs:line 323
  at QuantConnect.Securities.BuyingPowerModel.HasSufficientBuyingPowerForOrder(HasSufficientBuyingPowerForOrderParameters parameters) in
Common/Securities/BuyingPowerModel.cs:line 292
  at
QuantConnect.Securities.Positions.SecurityPositionGroupBuyingPowerModel.HasSufficientBuyingPowerForOrder(HasSufficientPositionGroupBuyingPowerForOrder
Parameters parameters) in Common/Securities/Positions/SecurityPositionGroupBuyingPowerModel.cs:line 156
  at QuantConnect.Securities.SecurityPortfolioManager.HasSufficientBuyingPowerForOrder(List`1 orders) in
Common/Securities/SecurityPortfolioManager.cs:line 911
  at QuantConnect.Lean.Engine.TransactionHandlers.BrokerageTransactionHandler.HandleSubmitOrderRequest(SubmitOrderRequest request) in
Engine/TransactionHandlers/BrokerageTransactionHandler.cs:line 843