Reject negative autocommit batch size and use default size for null expressions