Mazda Repair Questions? Ask Mechanics for Answers ASAP
I am sorry that you have not been helped yet. I just came online and saw your question.
Yes, the TP sensor would cause it to not stay running if it is not commanding the the throttle body plate to open, therefore no air to the combustion chambers.
But before replacing it, check that the throttle body is clean from carbon buildup and check for any broken/crimped/chafed wiring to the TP sensor