Black smoke - possibly ECT sensor (blue) or MAP sensor (would also indicate why it tried to stall) I had something similar and it was intermittent, and therefore harder to trace, as it all worked perfectly once hooked up to Pectel monitor and @ the tuners
Could also be the main wiring loom plugs giving false readings from the sensors to the ECU if these haven't had any attention.... If when you have the engine running you lift these gently up and down (small movements) and it causes the problem, then check in there for corrosion or broken wires - they really need cutting out and being soldered & heat shruk wrapped.
I would *guess* the oil pressure is falling off as the engine is trying to cut. I assume it has correct oil levels etc?