Options physical delivery of shares


Physical delivery of stocks on the options expiry date is a headache now. I didn’t know and bought call options for a stock which is still OTM now , but I got email from zerodha for maintaining margin of it will be squared off and even penalty can be charged as per SEBI norms. How to get rid of this kind of situation , if I buy a call and at the same time I sell a call (call spread ) then also this margin rule applied ? What is the best strategy for avoiding getting physical delivery of shares in a option contract and earning profits also !