I tried with a simple json file with two images for light and dark mode, the images are loaded properly with no errors, but an error occurred during CGImageDestinationFinalize().
System is macos sonoma 14.5, tried with two png images, both 1920x1080.