i saw the sumatra author already made a 3.3.3 version
the code to apply was easy there was no big differens
https://www.file-upload.net/download-14660525/3.3.3.zip.html
i wrote you a personal message you might could try what i wrote if thats the problem
a other solution would be a direct contact and look where the code actually really fails
the message is multiple times in the sumatra pdf code, cant make the conclusion only with that (that message is also not directly at the load of the the jpg files, it also would have failed at a different spot)
that release is new enough i think the latest compatible version was in 2015 now its 08/2021
the 3.3.3 version is from 07/2021 while windows 11 is from 06/2021, the compiler version 16.10 is also 07/2021