there are phase detection relays that do what you want.
https://in.rsdelivers.com/product/broyce-control/45psr-400vac/phase-sequence-failurerelay-w-led-400vac/3979218.aspx
those relays will only operate if the three inputs are all present, and the phase rotation is correct.
The suppliers, rs, are charging over twice as much in india for that relay as they are charging in the uk. It is £52.28 + 20% vat (sales tax) in the uk.
I would have thought that there would be a locally made phase detection relay available in india, especially as it sounds like the mains supply is less reliable there.