If you getting a catalytic converter code and stalling happens and starts up when it cools off its the catalytic converter clogged when its hot. And if you hear a rattling sound near the engine bay then yes your converter went bad. Any codes with the sensors, convert, then theres ur culprit. Happened to me and switched it out and it solved stalling.