Hey, 79609863240@ya.ru. Welcome to the Photoshop Community. I'll move this to discussions for now. I'll need more info to help you figure this out.
Does this happen when you use Contact Sheet II from File > Automate > Contact Sheet II, or do you invoke the Contact Sheet II command through an Action? Actions are custom workflows, and it'll help if you export and share the action file, so we can test this.
Ensure there are no stale preferences in your Photoshop. Go to the location of the preference folder below and rename it to backup.
Windows 10/11: Users/[user name]/AppData/Roaming/Adobe/Adobe Photoshop [version]/Adobe Photoshop [version] Settings
You can press Press the Windows key > Enter 'Run' > Enter %APPDATA%\Adobe
Rename the Adobe Photoshop folder by adding a .old at the end. (Adobe Photoshop 2024 > Rename > Adobe Photoshop 2024. old), You can restore these preferences later if needed.(https://adobe.ly/4860qM9)
Restart the computer.
These changes will give a fresh start to Photoshop as a fresh install. Let me know how it goes.
Hello. This happens when using Contact Sheet II from the File> Automation > Contact Sheet II menu
I did as you said. Renamed the folder "Adobe Photoshop 2024 Settings", created a new one at startup and opened from scratch. But this did not solve the problem. When starting Contact Sheet II from the File > Automation> Contact Sheet II menu, the same errors appear.
I restored the previous settings by deleting the new settings folder and returning the name of the old backup.