Had a similar problem recently with mine here in Montana. With the onset of Winter, I started getting misfire on 2 & 4, plus a knock sensor code.
Replaced the knock sensor with one from a junkyard, code went away but problems persisted. Replaced the plug wires and everything has been fine since then.
NOTE: there was no physical evidence that the plug wires were failing, they looked good on visual inspection. Don't trust your eyes when it comes to bad wires.