The low oil pressure as Damemorder stated does in fact stall the engine as a safety feature. So, if you have oil pressure (mechanically checked) then replace the oil pressure sending unit.
A bad TPS will cause occasional stalling (I know this from experience as I go through a TPS every year and a bit). Clear the codes and run it for a while until the check engine light comes back on then check it again. If it has the same code you will have to check the signal reference (5volts) the signal (0.4 volts or close at idle) and ground from the TPS sensor while connected and running hot. I put a paper clip in from behind the plug (through the rubber seal) into the plug until it contacts the wire connector inside. That way I can get the reading without damaging the wire by poking it. Run it at idle nice and hot while checking it for any wierd spikes in the signal (0.4 volts idle to 4.8 or so volts Wide open throttle (not while running!))
1992 Bonneville SSEi
White, grey Leather interior.
Tinted windows and blackouts on headlights.
Custom high flow exhaust, Everything replaceable - DONE
300 000 kms original engine, tranny 2 rebuilds.
Playboy Bunnies Embossed in Tint. Oh Yah!
Ever Seen a Polar Bear in a Snow Storm?