occasionally, spokes break, usually on rear hub motor wheels.
Spokes break when the wheel is out of true or the stress gets too much.
The spokes usually break at the elbow, where the steel is thinner and rubs against the metal flange of the hub causing metal fatigue.
E-bike spokes are 13 gauge, 50% stronger than 14 gauge spokes on normal bikes, but the stress put on them is much more than doubled: a rear motor wheel can produce 5 times more torque than the average human. However, a well built wheel can cope with that, this is the case for a large majority of rear hub motor wheels. They never have broken spokes, so you should not worry. However, some do. This is because it's much more difficult to keep the rear hub motor wheel trued and spokes tight all the time.
When you ride off the kerb for example, the shock to each wheel is directly proportional to the weight on it, the rear wheel takes it much harder than the front wheel. Furthermore, the front wheel is usually suspended, the shock wave is absorbed by the fork's springs. The rear wheel supports most of your weight, takes most of the stress and often has no springs. Bikes with crank motors do not suffer from this problem because the motor torque is transmitted onto the chain rather than directly onto the spokes.
The only way to avoid breaking spokes if you have a rear hub motor is to keep your motor wheel trued and your spokes even tensioned. Spokes work only under traction, if they are compressed, they break instantly. Each spoke can take as much as 300kgf before they break, I tension them at 90 to 100kgf - they never break. You don't need to buy a Park spoke tensiometer to find loosened spokes, ping your spokes with your fingers, if any one of them isn't tight, you will feel it. Invest in a £2 spoke key, that's all you need.