On the 1299 code, use a scanner to verify the head temperature is actually over the limit.
If the sensor has been changed and the code still persists, look a the possibility a harness short or cross could be doing it.
When this code is present, the motor should be in Limp mode and run poorly by intent.
A real over heat conditon does not clear with just igniton cycling.
Good luck.