My first thought is check timing and knock sensor wiring and sensors themselves.
There are two knock sensors.
It's not uncommon for the wires to get brittle and break.
It sounds your like timing is way too far advanced and the knock sensors are not telling the computer to adjust.