If your running too much boost, running a lean air fuel ratio, too much ignition timing, less than 98ron fuel or any combination of these will cause detonation (aka pinging, aka can of marbles) will destroy your engine.
I'm surprised it hasn't already as from your description of the sound I'd say the condition is quite severe.