Check the MAF connection, then the soldering in the MAF if the connection is fine. Also, look at the alternator waveform for bad diodes.
If either fails, or even the transmission, get a replacement parts at
www.infinitpartsusa.com
Don't go for American retailer or local rebuild. They will not do as good a job as Nissan who does nothing but thier own rebuilds.