The issue arose because some of the images were in WebP format, and the way to handle image results recommended by Apple did not work for WebP images. Fortunately, resolving the issue is quite straightforward.
Table of contents
Why Does It Fail?How to Handle WebP Images When Using PHPickerViewController?Adding WebP Support to NSItemProviderFurther ReadingsSort: