Postgres UniqueViolation error with GitLab export - import

I tried to export a project from GitLab.com and then import it back to a new project on GitLab.com, but after a few minutes I got the following error:

PG::UniqueViolation: ERROR:  duplicate key value violates unique constraint "index_ci_builds_on_token"
DETAIL:  Key (token)=(t0ken) already exists.
: INSERT INTO "ci_builds" ("type", "status", "finished_at", "created_at", "updated_at", "started_at", "commands", "name", "stage", "stage_idx", "tag", "ref", "user_id", "gl_project_id", "environment", "when", "yaml_variables", "queued_at", "token", "project_id", "options", "artifacts_file", "artifacts_metadata", "commit_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24) RETURNING "id"

The repository was not imported but I can see the project created and the Activity and issues imported fine. No MRs though.

cc @jameslopez