Hey there,
I had the same problem and found debris in my mass air flow sensor. I cleaned it with brake cleaner and it went away for awhile only to return 500 miles or so later. I've read up on it and consulted a Nissan technician who says that the limited engine rpm and power may be due to a bad cam position sensor or module, both of which are in the distributor. I've since replaced the mass air flow sensor as well as the distributor (thank goodness for rockauto.com!) and have not had a re-occurrence of the issue.