I think you nailed it.
After checking with an OBD reader while the car was running, the EGR valve data was off. I wasn't able to check the live data when the car was stalling to confirm, but I'm assuming the valve was stuck open letting too much exhaust gas into the engine, causing it to stall...