Arduino connects and disconnects repeatedly

This was also my issue with almost exactly the same hardware ( https://smile.amazon.co.uk/Dreamcolor-Addressable-Chirstmas-Decoration-Programable/dp/B01MDJ3VBC/ )

Just power the lights externally and use the arduino for sending data, otherwise the serial connection becomes unreliable.