Connect using an original or high-quality USB data cable.

Your device should have at least 60% battery to prevent it from shutting down mid-process.