Error on restore from command line (duplicate email)

I get this error:

EXCEPTION: psql failed: DETAIL:  Key (lower(email::text))=({REDACTED}@yahoo.com) is duplicated.

How can I fix it?

I think its somehow related to this one: