I had the same error, but my solution was delete the unique index.
The thought the steps to insert a new static record that has others static entities as a field, are:
1 - Insert every rows with 0 or null;
2 - Consult the others stitaci entities to get the correct ID filtering by Label selected in service studio;
3 - Update the new records from 0 or null TO the correct values.
It's work for me. I had the same erro tha you got guys and analyzing the deploy errors logs I arrived in this solution.
I hope you get this solution too.
"It's a big mistake create row with your own hands, and so create it duplicated" :D