Before creating IImageWrapper
you can check data validity by IImageWrapperModule::DetectImageFormat
This function returns EImageFormat(can return EImageFormat::Invalid
), which can be used as a argument in IImageWrapperModule::CreateImageWrapper.
You can also try stb_image third-party lib to check it is a problem with UE or with the file.