You’re using Blynk legacy. It’s always a good idea to use library version 0.6.1 with Legacy, but it’s an even better idea to switch to Blynk IoT, as legacy will be retired and decommissioned at some point.
Your project uses digital pins, which is another bad idea, you would be far better using virtual pins.
You could use a BlynkTimer to periodically check if your device is connected to WiFi or Blynk, and turn off all of your relays if it isn’t.
It’s probably a good idea to switch to up a managing your own WiFi connection and using Blynk.config and Blynk.connect instead of Blynk.begin
Pete.