Gas tank

Was it a lot of pressure that blew air out, or that sucked air in (i.e., a vacuum)? Leave the cap loose and try to see if it willl run longer. If so, then yes, your venting is wrong. Fix it or you can collapse your tank.... you're lucky the engine stopped.