I doubt that this would happen unless the manufacturer of the cable really screwed up… Just using a (properly wired) data cable in place of a charging cable or vice versa is not going to damage anything. As mentioned though, if you are very concerned, get a good USB cable tester and verify each cable before using it.

For me, it does not get to that level of concern… and I have some pretty expensive devices that use USB cables.
The only problems I have ever had was grabbing a charging cable and trying to use it to transfer data… Then having to find the correct cable for the job.

1 Thank