Barcket order margin below limit

i think it will help

is their any solution or precautions for this kind of situation

As BOs in Zerodha is a SL-M order, once there is a gap up/down, the order is filled at the prevailing price. However if it is a SL order with a trigger price and limit price and the gap up/down price is beyond the limit price, the cover order should be manually put in. This is my understanding with SL orders.

So it is always safe to use SL-M orders