Most likely a cam/crank sensor issue. They always cause it to stall, but work once its cooled off a bit. I'm pretty sure the 3.1 is known for both to go bad but I'm not sure. I'm not a 3.1 guy, most have 3800's but maybe someone will stop by that knows more about them.