How do I switch between two voltages of a capacitive divider
Yet another example of trying to use an N-channel MOSFET as a high-side switch. It simply doesn't work.

Use P-channel MOSFETs and pull the gates to ground to turn them on.