You might want to check your SQL database, particularly tables like wp_posts
, to verify if the primary key and auto_increment settings are correct. During database migration, primary and foreign key relationships can become corrupted. For reference on correct database key structures, see the WordPress Database Description documentation: https://codex.wordpress.org/Database_Description