Problem with placing order

As a part of my strategy, I have to cancel an existing SL, and place a new SL for the same strike price with different quantity and average price. This order always gets rejected, giving error as shown below.

Exisiting position: {'symbol': 'NSE:BANKNIFTY23JAN42800PE', 'id': 'NSE:BANKNIFTY23JAN42800PE-INTRADAY', 'buyAvg': 0, 'buyQty': 0, 'buyVal': 0, 'sellAvg': 198.75, 'sellQty': 125, 'sellVal': 24843.75, 'netAvg': 198.75, 'netQty': -125, 'side': -1, 'qty': 125, 'productType': 'INTRADAY', 'realized_profit': 0, 'crossCurrency': '', 'segment': '11', 'ltp': 182.8, 'fyToken': '101123012555521', 'exchange': '10', 'unrealized_profit': 1993.7499999999986, 'dayBuyQty': 0, 'cfBuyQty': 0, 'daySellQty': 125, 'cfSellQty': 0, 'pl': 1993.7499999999986, 'slNo': 0, 'avgPrice': 0}

Order placed: [{'symbol': 'NSE:BANKNIFTY23JAN42800PE', 'qty': 125, 'type': 4, 'side': 1, 'productType': 'INTRADAY', 'limitPrice': 207.0, 'stopPrice': 203.0, 'disclosedQty': 0, 'validity': 'DAY', 'offlineOrder': 'False', 'stopLoss': 203.0, 'takeProfit': 0}]

Log: {'s': 'error', 'code': -310, 'message': 'Please provide a valid order quantity', 'id': ''}

Before placing this order, the quantity of 'NSE:BANKNIFTY23JAN42800PE' was increased from 75 to 125, and an existing SL for 75 quantity was cancelled. What might be the reason for this error?

Vikram Sri