Anything can be replaced / repaired.. Whether you can find someone to take the job on, ans whether it would be cost effective, ia a moot point.
i would guess, either the electronics got confused (doubtful, if multiple power-cycles were involved) or more likely, either dirty/poor connection somewhere, or a loose wire causing a short, and the unit to shutdown.
I would clean track the rollers sit on. area of rollers that picks-up from track. rollers. Wheels / tyres / wheel-backs / check wipers and/or brushes..
Then would give the loco a good shaking, abd try again. - Do this a couple of times, we are looking for an intermittent fault.
If still all good, put it down to another unexplained mystery, of 'elektrickery'..