If it is just randomly stalling, I'd be checking the integrity of the male pins in the connectors from the camshaft angle sensor & the crankshaft angle sensor. Just to restate that, not the sensors themselves, but the male pins in the connectors...