Couldn't find USB port, power surged through - what happened?

What causes this heating, and is there a way to avoid it?
External power source for the stepper?