I found a solution here:
The USB power configuration setting has to be changed to a lower value. I changed it to 20 ma and it's working great now.