It is normal that it checks the function of both mains relays before switching back to mains operation.
However, you need to find out why its rejecting the mains in the first place. Check the mains voltage and frequency, one of them is either too high or too low for your gridcode.
At about 09.00 the system had an overload event. Possible that an event on the grid caused this.
What does the NS protection log say? You can read it through either VictronConnect or VE.Bus Configurator but you need to connect through an Mk3 adapter for both
At the overload event it did not disconnect from grid, but it did disconnect at those frequency/voltage drops which i think its an internal victron issue.
After many hours of logs monitoring i found out that my grid is the problem…what i i want to do next is to add a voltage regulator/stabilizer betwen grid - inverter.