Lots of Nintendo Switch charger/dock anecdotes revealing issues here.
Also, the Nintendo Switch Dock's male USB-C plug is a tiny bit more narrow to provide a smooth slide in/out (and the Switch-side female receptacle is standard-conforming)... un-licensed and thus unaware dock vendors cluelessly tried to emulate that and botched the tolerances, exposing the CC pins to 15V.
See https://arstechnica.com/gaming/2019/08/heres-why-nintendo-sw... for more.
tl;dr: the Switch is standards-compliant, the problem are third party accessories.