Focus on the P0372 and P1371 for the rough running engine. Those indicate a probable issue with the distributor, possibly water intrusion. The P0135 is not a big issue; the heater or wire is defective on the front bank 1 O2 sensor, and that makes for a long time to get to closed loop fuel mode, but not rough running. The P0300 is likely due to the distributor problem.