The article doesn't clarify that the effected motors are mid-drive motors and proprietary versions too. Many Bafang and other brand mid-drive motors do have easy access to spares and of course hub motors are typically much more reliable especially direct drive hub motors which gig economy riders use for 10s of 1000s of miles sometimes. Mid-drive motors are always going to be less reliable as a much more complex design with more internal gears, sometimes belts and lots of different sealed bearings, they also contain the controller unit and its in an area exposed to water down in the bottom bracket area and fully sealing the motor could lead to thermal issues. They are also typically the most powerful ebike motors often delivering up to 900W of power despite their 250W rating so that is a lot of extra power compared to hub motors. It's a recipe for a short life product with a high level of failures.
However that is not to say all proprietary mid-drive motors fail all the time. It's all down to rider weight, how many hills, how they are used, how they are mainted, how powerful the rider is, how often they are used, what weather you cycle in etc, lots of variables.