Samsung S5 screen turning on and off when plugged in to charge
I was having the same problem - plugged the Samsung cable into a dual charger with higher current capability (my wife left her charger at the cabin) and the phone quit complaining.

An intelligent design decision - have the phone use more power to complain about not enough power during charging...