I'd say that's not related. It's a perfect description of pre-ignition/detonation.

Solution: kick the pedal harder so it downshifts.

Or use a higher octane fuel.

Or... ? Google search!

Here's something to look up: does the HR16DE have a knock sensor? If it does, it should pull timing back when it detects ping, so it shouldn't do it for long.