You can use getmeta data activity to get the file header details :
https://altisconsulting.com/au/insights/how-to-validate-data-lake-files-using-azure-data-factory-2/
You can also use lookup activity with output as 1st row to get the file header details as well for alternative