Redshift load error - empty file

We convert the source file to JSON format to load Redshift. However, sometimes, a specific source file is empty (0 records) and it creates a 0-byte file. In JSON, there is no concept of header record. How do we handle Snaplex failure?

Thanks.