When open add new post or page WordPress add post with ID=0 continuously [closed]

Make sure your user has permission to publish.

Some WordPress setups users such as authors do not have permission to publish posts directly, instead they can submit them for review for an admin to review and decide whether the post should be published or not.

It is not a great idea to use an administrator user on daily basis so sometimes people create an author user for themselves without realizing that role does not have permission to publish without an administrator user reviewing the post.

If I’m right you need to grant your user role permission to publish or change your user role to one that has that sort of permissions.