you were right, here is the previous error:
ERROR: could not create unique index "index_tags_on_lower_name"
DETAIL: Key (lower(name::text))=(زبا�) is duplicated.
EXCEPTION: psql failed: DETAIL: Key (lower(name::text))=(زبا�) is duplicated.
which I guess is already reported here: Can't restore due to corrupt indexes (with some clues on how to deal with corrupt indexes) and here There are some duplicated tags I can't merge .