Hello. Sorry but where is the diagnostics connector? I am posting a picture of my engine, can't locate the 10-pin connector :-( Pretty much looked all around it. Maybe there is none?i would start by changing the distributor cap , while you are in there check the cam sensor , if its not that expensive replace it , those two things can be questionable at the best of times ,
although the cam sensor usually just dies and gives no readings they have been known to cause erratic spark @ high RPM which is IMO what 'is going on..
your motor also has a crank sensor , that also usually just dies and again they have been known to cause erratic timing if they are not calibrated correctly with the proper tool.
timing must be set with the correct tool , if not done this way you will never get correct timing.
has the motor been checked with a diagnostic tool , , if so were any codes showing ?.
Thanks