The error is telling you there is a problem with your data. You are trying to insert Primary Key violations into the system which SQL is politely telling you it won't do.
What you can do is look at NOT EXISTS or LEFT JOIN for your INSERT statement and only INSERT data you need. This is a common issue (our batch process goes through it multiple times daily
)