When try to post we are getting below mentioned error message:
Error: Could not insert post into the database (500)
This error seems to be due to the wp_posts table corrupted. To resove it repair the wp_posts table. If it will not work then restore table from the available backup which should fix the issue.