This post tells about energy and charge conservation in the circuit. We will consider conservation laws on the circuit with two capacitors in parallel via the switch.
Let’s consider the circuit depicted below.

Here in accordance to the Kirhhoff Current Law we have . At the same time here and . At the same time we know that .
Then and .
From here we have .
After the moment of switch closure, charge in the circuit is conserved.
Let’s see what happens with energy in the circuit before and after switch closure. Before switch closure the total energy in the circuit . After the switch is closed . It means that energy in the circuit after switch is closed is not conserving. More over, it is easy to see that .
Educational content can also be reached via Reddit community r/ElectronicsEasy.