Only keep the First and Last Revision of a post

Open up your wp-config.php file.

Add the following line:

define('WP_POST_REVISIONS', 2);

You may have to change it from 2 to 1.

Always back up your files first.

EDIT: this will not save your original. Sorry, I overlooked that part of the question.

error code: 523