The pos is intractable as shown. Note that S2 is more likely a break-before-make, opening the 7805 return for even a few hundred usecs is not a good idea, output heads for the upper limits, then filtering the output with a reasonable value of capacitance is also problematic with that dammed switch too.