When You use the built-in "Merge To HDR" Script, and it detects that the images are too similar, it prompts you to adjust your settings (Exposure, ISO, etc). When this Batch HDR script runs into this scenario, it throws an unrelated error and exits at whatever picture it is working on with the "Check the Number of Files" Error. Given that integrating a predefined set of values into the form wouldn't be a good approach here, as it may vary each time this arises, I would suggest tweaking the script to catch that error and allow the user to answer provide the adjustments on the fly per photo.
When You use the built-in "Merge To HDR" Script, and it detects that the images are too similar, it prompts you to adjust your settings (Exposure, ISO, etc). When this Batch HDR script runs into this scenario, it throws an unrelated error and exits at whatever picture it is working on with the "Check the Number of Files" Error. Given that integrating a predefined set of values into the form wouldn't be a good approach here, as it may vary each time this arises, I would suggest tweaking the script to catch that error and allow the user to answer provide the adjustments on the fly per photo.