Added checks for corrupt S3 raw event files