random misfire codes sound like a cam thing do you know if the car has a performance cam in it? And the p0341 code could be a broken wire in the loom that goes to the cam sensor it could also be a problem with the magnet on the cam sprocket that works with the sensor
I did a cam and after my build i have the p0341 code and I have random misfire codes deleted so i dont see them
Not that any of that really helps huh