I don't know the cutoff dates of VINs between .0 and .5 models.
I'd start out by replacing your spark plugs - hopefully that will resolve your P1320 code.
To solve P1145, swap the camshaft position sensors to figure out whether it's the sensor or solenoid. FWIW, my 2001.5 Pathfinder had both P1140 and P1145 (passenger & driver side) and replacing both sensors without any other troubleshooting solved the codes.
This guide has details. I used two of
these sensors. If you order from RockAuto, be sure to use a
5% discount code.