Lost connection to mcu ender 5

Refer to Timeout with MCU / Lost communication with MCU
In almost every case this is related to your hardware. Unfortunately, finding the culprit can be tricky.