So, keep your e-bike well-maintained by cleaning it properly after each ride. Especially if you had an off-road trip yesterday or rode in the rain.
Gravel and mud stick to the battery or motor which causes the temperature to rise. These components are designed to be air-cooled by themselves when you ride. Stuck mud blocks the heat from escaping through the metal parts and, hence, causes collateral damage.
That does not mean you need a high-pressure wash to get the grime off. A gentle cloth-bucket wash works fine. Avoid too much pressurised water around the electrical wiring, battery, and motor. Yes, they are water-resistant, but they can still get short circuits. Maintenance is not hard if you stay interested in your e-bike.
If you are not confident enough, come to E-Ozzie. We have specialised experts who get the job done in a very fine manner. We have the right tools and techniques for an ebike service.