Most likely a broken wire. Cheap USB cables have usually only very thin wires with a few strands, causing also a high wire resistance. Better replace the cheap wire with a more suitable one. You could buy an USB extension cable, cut it in two halves and recycle the switch (does look like a power cord switch). The camera should survive short "power outages", but the bad cable might create some noticeable voltage drop.