Controller Issues

Last cut in a 3d two sided carve, lost x,y,z. Joystick blinking, movements jerking. Turned controller off and could still hear fan. Turned on controller and got no response. Up plugged controller, fan went off. Plugged back in and everything seems fine. Ran profile gcode again and lost everything again.