Besides my usual recommendation to keep the contacts clean, limiting the cleaning amount does seem best.
Mine did a weird thing where it stopped JUST the vacuum motor, and paused to I guess think for a while, but it then went on to finish. I turned it off and back on and haven’t noticed that happen again.
I think too much static charge can also cause it to suddenly shutdown. one time I found the contacts were touching a wall corner (which is metal). Once I started using an anti-static spray that never happened again, it also helps keep the robot cleaner longer.
Mine is at the age that I should probably replace the batteries. I’m right at 3 years and it is still working okay.