If your "ForEach" loop is running continuously, it might be due to misconfiguration or a loop within the pipeline that's causing it to rerun.
You need to configure the Lookup activity to point to your Blob Storage dataset where you esnure that the "First row only" option is disabled, as you need to retrieve all files.
In the settings of the ForEach activity, set the "Items" field to @activity('LookupActivityName').output.value
. This ensures that the ForEach activity will iterate over each item in the list of files retrieved by the Lookup activity.