That not enough memory issue is common. The image you're trying to view likely has an invalid ICC Profile. Patching "ImagingEngine.dll" should fix the issue.
GitHub - PaaaulZ/PhotoViewerOutOfMemoryNoMore: Windows Photo Viewer gives "Out of memory" error when opening images with unknown color...