thats would I would say, intake leak or vacuum,
there are a lot of vacuum lines in that engine bay, and most of them will probably be cracked.
when it shuts off, does the motor just stall out of does the whole car loose power?
If you're loosing power, then you have a crappy ground.