There is a mass air flow sensor in the air box.Take it out and clean it,sometimes you get some crap on it and it gives the computer some bad info and it tries to shut down.There should be two screws holding it to the air box.Just use some compressed air to blow it off.If that doesn't fix it check your connectors for some corrosion or a bad ground.But check the sensor first,simple to do.