i have the same problem but a non-Apple lightning cable worked for me! original apple cable won’t stop disconnecting.
open