Lately, I've noticed a lot of transmission solenoid trouble codes being reported (and I'm not talking about the ones that have been affected due to coolant contamination due to failed radiator coolers). The solenoids themselves are not sold by Nissan and when they are found on the internet and installed, they often don't fix the problem and the code resets. The thing is, it is often not the solenoid that is the problem nor the TCM, which mounts to the valve body. The RE5R05A transmission is pretty good, but it appears it does have problems with pins breaking on the valve body, causing poor electrical circuits to and from the solenoids. I found this great video on YouTube that shows the failure and how to disassemble and repair the problem by re-soldering the pin(s). It may not be something for the typical DIY'er, but at least it gives some insight into the problem:
https://youtu.be/GAveITCubOQ