Expose size limits on storage in API, and add overflow detection logic to replay...