I did google that. Seems like a few people complaining about lemons or not realizing a bike needs maintainance (chain/cassette swaps etc) and otherwise basically fine? In any case that's an eMTB part so you'd expect more trouble than something regular, just like how MTBs are way higher maintainance than road in every way.
Your general point is good but it sounds like you had a bad experience and are generalizing. And how would you already be out of warranty after a few thousand km, doesn't add up.