A P0445 would not necessarily cause a dying problem, this is a code that indicates that the leak test for the Evaporative System Self-Test is not completing correctly. A P0445 means that the Purge Volume is not correct, this may or may not be a Purge Valve issue.
I would check your fuel pressure, just to be sure, often when a fuel pump gets weak, a car will idle but will die when you give it any gas. A bad set of coils will do this as well. I would advise having the data stream for your engine scanned, this is NOT done by a parts store scanner or parts store person, this takes a Pro with a Pro level Scan tool. See if the Crank Sensor signal is dropping out ( common on Nissan )
The location of the Purge Valve is near the Throttle Body on a 2.5 and on the top rear of the Engine on a 3.5 liter V6.
Try disconnecting the electrical connector and the vacuum lines to the valve and plugging them and see if that does any good, BEFORE, you buy the Valve. It would not surprise me if you still had your issue after doing so