The validity of a CNC order in Zerodha depends on the validity order type chosen while placing the order.
If you have placed a CNC order using Day order, the order remains valid till it gets executed or till the end of the trading day whichever is earlier.
If you have placed a CNC order using an IOC order, the order gets immediately cancelled if not executed. IOC orders are generally used to place the order in bulk quantities.