If I use Marlin for new firmware m1-v1.4-h2 , I first use V-verify, then it exits with error by compiling of board Arduino/Genuino Mega or Mega 2560
Board, Processor and Port are OK
For the K8400 you need to use the Arduino software version 1.0.6 or lower.
You can download it from here.
https://www.arduino.cc/en/Main/OldSoftwareReleases#previous