I had a similar problem with a 2001 Sentra with an SR20 engine. It would stall after idling for a while. I measured the voltage output of the mass airflow sensor, and according to the manual, it should be 1.3 to 1.7 volts at idle, but mine was only generating 1.56 volts. I replaced it with one from another vehicle, and it generated 1.38 volts, and the engine stopped stalling. You should try it; maybe that's your problem. The sensor I used for testing was from a 2001 Pathfinder with a VQ35 engine (I think it's the same as the Q45), and the sensors should be the same. Sometimes cars are temperamental and don't adhere to the manufacturer's specifications, but it doesn't hurt to know the sensor specifications to properly diagnose a problem.