I also tried an older Joplin version (3.6.15), which had worked correctly for me in the past, but it no longer restores the images correctly in my current synchronization environment. I therefore returned to the current version.
Ah I missed that part. Can you share a section from the log file with the error, including some of the surrounding lines as well?
Also, do you have the Joplin data at the root on kDrive or in a sub folder? If the latter, what is the full path?