In this particular case I think even well-known name brand chargers which follow standards (Apple, Anker) are breaking the Nintendo, and that's unacceptable.
Nintendo should have taken more steps with their charger to restrict the Switch to authorized chargers only, rather than permitting unsupported chargers (such as standard USB-C ones) from being able to power it. Or even just outright used a proprietary connector!
None of this is any fault of the chargers. They’re the ones adhering to the standards correctly. The Switch is at fault.
Imagine you go to a hotel and see an USB A port on the wall and you try to charge your phone, then your phone starts to smoke or simply ignites. You find later that port was not a standard USB A port, but a 220 volt plug for something custom. Should the hotel be responsible for that? I think it should. If it looks like a duck ...
Their website says that it uses USB-C for charging and the charging port accepts stock USB-C cables, it's not even remotely reasonable to bury within the warranty a statement which says "oh, by the way the device cannot accept USB-C cables -- if you use a made-to-spec cable that fits in the port, no warranty for you!".
If you shove 9V into a 5V device, bad things will happen, regardless of Nintendo is anti-standard or not
They put USB-C on the box. They screwed up the design. They should be forced to have a recall, or extend the warranty.
It would have been better if they'd launched another dozen different plug standards. In situations when there's only one thing you should be connecting to your device, that's the way to go. Universal sockets only make sense if they're actually universal.
Nothing above seems related to the standard. At the end of the day, its still comes down to the manufacturers to follow the standard in order for everything to to work. But the standard itself can't stop any particular manufacturer from making a non-compliant product.
Edit: A poster below this question said they fried their Switch by using their Macbook charger so I may have been naively optimistic in my original statement.
It might help resolve certain really common cases like compatibility between the chargers and devices of the mainstream entities. I guess I'd argue that that should be happening on its own, but Nintendo definitely dropped the ball with releasing a USB-C product in 2017 that was interoperable with Apple and other name-brand chargers which had been in existence for two years previously at that point.