Why do you need 100,000+ aRGB image that are is 2,4001 folders that are any size and any image file format converted to 100,000+ sRGB Image without profiles.
The Image Processor Photoshop script installed by Adobe with Photoshop CS6 is designed to do batch Image Processing like that. It can also fit the output image to any size you may want. I would just like to know Why you need to do something like that for 100000+ images.
I can not think of any reason why someone would need to batch 100,000+ images
I see I am supposed to move "several" 360 degree photographs from one viewer to a new one. Some source files are in sRGB, some in aRGB color space, which is a problem at first place. Surprisingly, when I upload sRGB converted photo with embedded sRGB profile, in the new viewer it causes color difference between fully loaded image and low resolution images displayed during rotation in 100% zoom. When there is no color profile embedded to the file all photos are displayed correctly at all times.
I've already tried to use the Image Processor, but it crashed Photoshop as well.
There is also Image Processor Pro that can convert files to sRGB and save with or without embedding the profile. Note that if the profile of the original image is not sRGB, IPP will do a conversion.
The current rev is v3.2b3 at ps-scripts - Browse /Image Processor Pro/v3_2 betas at SourceForge.net
If it still crashes, you're going to have to process smaller clumps of folders using IPP or the other alternatives from above.
100,000 is a tall order If you machine did not run our of resources it would take a extremely long time. and depending on the file sizes would require many GB if free disk storage to store the output files.. Are you sure it memory Photoshop is running out of. I have 40GB of RAM on my machine . Photoshop seldom uses more the 16GB of RAM but I have seen Photoshop use over 100GB of scratch space.
For “industrial” quantities, I would suggest that you look into ImageMagick or GraphicsMagick.
EDIT: If you are on a Mac, simply use a ColorSync AppleScript or Automator to process the images from one colour space to another and to remove the ICC tag.