ESP 12 worked fine, now disconnects all the time. Server error?

One thing that leaps out at me is this bunch of consecutive Blynk.virtualWrites:

Try splitting them into two functions and calling them at slightly different times.

Also, GPIO 16 probably isn’t the best pin to use for your relay, and GPIOs 24, 26 & 9 don’t exist on the ESP (I do realise that you’re not using these at the moment, but just saying).
Have you read this:

Pete.