Motion System Error 5

I’ve been using an Up Mini 2 for about a year without any issues. Just a few days ago, it wouldn’t auto calibrate. The bed did not stop until it hit the nozzle and then generated a motion system error 5.

I tried this a few times and got the same error. Then I calibrated manually and tried a simple print (20 minute expected duration). I got a motion system error X-alarm partway through the print. Does anyone know how to fix this?