Use a different cable.
The one producing the error has all 4 lines (2 data, 2 power) connected, if you use a 'charge only' cable i.e. many of the really cheap ones, that should only have the two charge wires in; you might need to experiment at the poundshop.
There's a huge variation - I've got two 20cm cables, one charges twice as fast as the other one, neither does data; my 2m cable is faster than my 1m but they also do data.
--
TG