@edwarrd This is a case of fuel starvation . There are many possible reasons for the fuel starvation . The best thing to do is check for engine codes ,OBDII codes . The most probable issue would be fuel lines leaking of a plugged fuel filter. If this brings no joy then move on the sensors . Clean the Map sensor and clean the throttle body . Check your o2 sensors. You can also check for back pressure on the fuel tank . test this buy running the car without the fuel cap . there could also be a plugged Catalytic convertor. Is the car overheating when this is happening ? If so it could be a timing issue . it could be a bad timing belt or chain and the pinging your hearing is bad timing. The best thing to do is get the codes read . When you do let us know your codes and we can help further. Hope this helps