Our experiences differ sadly.
My bafang motor has seen a lot of issues in the ~1.5 years I had it. The bike shop (also) claimed rain and mud where a problem and they considered the ~1000 km per month I rode it 'misuse'.
I had a good run with electric bikes up until that time (~10 years with a front-hub motor and after that the Bafang) but to be honest I'm kinda glad it died because I've been riding a decent non-electric bike ever since and monthly visits to the bike shop became yearly visits instead.