Bit of a long shot, have you checked oil pressure, even though the knock sensor was not attached to engine could it still pick up if there was a knock due to low pressure? There is a known problem with the X20XEV having partially blocked oil strainer in the sump.