Hey, Can you please provide details about your source ? from which you are generating the file?
In case if it is SQL database,
You can switch to query mode in source of dataflow and check the count of query. If it is zero, throw error else provide output. As per my understanding there is no out of the box feature to validate it within copy activity.
Or you can use a look up activity or script activity prior to dataflow to do the same