Can not restore snapshot backup

Trying to restore a backup from the admin but it fails after 40%.

At first it was showing Allowed memory size exhausted error. Then I increased memory limit. Now it is showing

Error in the WordPress database Duplicate entry ‘XXXX’