...and Samsung recalled two series of their flagship phones to replace their batteries, and fail (and cancel the model altogether). Because of their failure, planes started and still continue to announce phone charging related security measures during take-off.
Every company makes big mistakes. Also Apple once built laptops with self-cooking GPUs, a couple ones very fragile keyboards, a series with too-sensitive screen coatings.
We can write tons of problems with every producer. The most important metric is whether they're learning from that or not. As far as I can see Samsung and Apple learnt their lessons.