Error 4013 is often a hardware-software communication issue.
- Change the Cable: Use an original Apple MFi cable.
- Update iTunes/Finder: Ensure you have the latest version on your Mac/PC.
- System Repair Tool: If the error persists, use a specialized tool like Tenorshare ReiBoot to fix the iOS core without deleting data.