I SOLVED this when I check tables “wp_posts” etc… They “lose” AUTO_INCREMENT attribute for they primary keys.
I installed new wordpress on some test subdomain, then I compare table structure with fresh installed tables and change primary keys to AUTO INCREMENT like in “fresh” installed tables