MK4DUO compatibility

hi everyone, i have a problem with astroprint touch. i have an anycubic i3 mega printer with MK4DUO firmware, while printing it disconnects the printer at random. What could it be?

Hey, guys,

Personally I would say power problems, do you have the recommended 2.5A to power the Raspberry?

I have, 5V 5A Power supply