Error when updating content
- Node.js version: 20.14.0
- NPM version: 10.7.0
- Strapi version: 5.5.1
- Database: Mysql 9.1.0
- Operating system: Windows 11
- Is your project Javascript or Typescript: Typescript

### Describe the bug

When I update a content type from admin panel, and if this content type is a relational field of another content type, then I get an error "Warning: Internal server error" and in my console, an error like this :
"error: insert into chapter_section_lnk (chapter_id, id, section_id) values (5, 4, 7) - Duplicata du champ ‘4’ pour la clef ‘PRIMARY’”"

### Steps to reproduce the behavior

1. Create a first content type with 1 field (for example, "title" (text type) ) : let's name it "ContentTypeA"
2. Create a second content type with 2 fields : "name" (text type), and "parent" (relational oneToOne field with ContentTypeA): let's name it "ContentTypeB"
3. Go to Content manager and add an entry to "ContentTypeA" : title=contentA, then publish it
4. Add an entry to "ContentTypeB": name=contentB, parent=contentA, then publish it
5. Go back to "ContentTypeA" and edit contentA : change title to whatever you want, then publish it
6. ERROR "Warning: Internal server error" and "sql duplicate error" in console

### Expected behavior

Update should not show error


