Azure Data Factory pipelines are failing when no files available in the source

This Requirement can be solved by using the ADFv2 Metadata Task to check for file existence and then skip the copy activity if the file or folder does not exist:

https://docs.microsoft.com/en-us/azure/data-factory/control-flow-get-metadata-activity