P0351 is the ignition coil for cylinder #1
P0352 is the ignition coil for cylinder #2
Open or short circuit on the ignition primary circuit.
Causes: damaged coil, damaged circuit wires, damaged connector, damaged ECU output pins, ECU failure.
I would clean and check all connections and grounds before going after the ECU.
Would be very strange if both coils failed at the same time. Hopefully it is something simple.