As far as I know, motor manufacturers do not service failed motors, they just replace them, warranty or no. Unlike shocks, whose makers often offer "factory" service and repair, I've yet to hear of Bosch, Yamaha, Brose et al doing so. Not their bailiwick, I guess...
Regarding eBike Motor...