To diagnose you are going to need someone experienced in the internals of these engines and those people are few and far between primarily because Porsche didn't sell internals parts for a while and had their dealers ship the engines back and just replace engines so the dealers didn't develop internals mechanics who would then quit to become indies.
Your options are outlined
here...from $4k to $40k