Okay in that case get it on a diagnostic machine preferably with a 350Z specialist who has Consult.
It could be a cam sensor, crank sensor, timing chain, VVT sprocket: etc etc atc.
Have you tried any of the resets?
Where are you based?
Plenty fully working preowned engine parts in stock if required: https://www.350z-uk.com/topic/125665-loadsa-parts-for-sale-picture-heavy-now-with-prices-and-detail/