I've been having similar issues with an 04 Aveo. The symptoms you described can be anything from and idle air control valve to an EGR, bad MAP or MAF sensor, catalytic converter, and so on. If the tps is bad, it'll cut your engine, if it's just dirty on starting to die it may not.

Sent from my VS988 using Tapatalk