The thing with code P0340 is that when ever it is thrown no matter what the ecu then stops listening to that sensor. So even if the sensor and wiring is good but the ecu freaks out and calls the code you will still get a very hard to start car, shitty idle and back fires on WOT, just the nature of the beast man. I would say that since the problem came and went away with an oil change that you might have some junk floating around in the head.... As to why the car stalls under light throttle and constant driving but cant be replicated... fuck dude that makes me think wiring issue. Best thing to do would be to take the car out and try and replicate the instance by going though as many RPM and Load combos as you can. No guarantee that will work but other than taking it in, I am out of ideas....