With Bosch middrive, most LBS should be able replace motor easily enough plus Bosch provide diagnostic tools. Parts are easily to come by, its only drive, speed sensor, display and assist button module (combined in case of Purion).
i am still not sure if this means a total motor replacement...