My S10+ just did that this morning. My phone was very hot when I woke up and now it looks almost melted at the charging port. My phone keeps getting an error that "the connected USB device isn't supported". I've only had the phone for about a year and bought it brand new!
Hey, I lost my USB-C Charging port by melting and high temp (burning temp)...
Using any charging cable won’t be the problem not because of the wire it is because of the S10 built!
the USB-C Charging port is fitted directly on the mainboard.. So, the thing can go on high temps without a problem but if the said port was fitted by wire or other method it would melt internally and save the device and cable maybe a house or a car too...
honestly I think Samsung have an idea already I have been using mobile devices from the age of the GSM age as Car fitted phone and from that age until today never ever had this problem accruing as it is clearly not a cable problem but it is a wrong investment to buy a flag ship from Samsung I am done with them!
Note: I used the Samsung Galaxy S8+ to charge using the same cable and other devices never any complained or refused the cable!
Thank you for reaching out. Please keep us posted if you need any further assistance.