Had the same problem, took me a while to identify the fault, it was one of the intake valve timing solenoids
Genuine Nissan Engine Camshaft Valve Timing Control Solenoid (see list for fit) | eBay
Took both out and checked by giving 12V DC and the faulty one wouldn't plunge, so gave it a good clean it now works perfect. Order new parts just in case it happens again.
Hope you got yours sorted already.