I'd agree with most suggestions her, but the tuning was my first thought. A real PCM tune should include data logging, that could identify whether the issue is related to timing, plugs, wires, fuel pressure, or a few other things. It would be easier to diagnose if you had that testing done to begin with.
I and most here have not had pinging at virtually any time. I have been very impressed with that aspect of my 98 302, different from past non OBDII engines.
The GT40P heads are very good for stock, changing them would require the non P headers to use them, which has a different EGR system. It would be best if you stayed with the P heads, even swapping them with other cleaned up or ported versions.
So you could spend a few hundred on head work, or several hundred on tuning, one or the other should take care of the issue if nothing else is out of whack. Good luck,