Python How Should I Solve This Weird Primary Key Error

Python How Should I Solve This Weird Primary Key Error