8-bit indexed PNG files crashes Photoshop

I’m trying to list thumbnails in a UXP panel, using an API that returns small PNG images encoded as 8-bit/indexed colors. Whenever I try to load one of these images as an img tag, Photoshop crashes.

Is this a known issue? Any workarounds?

Photoshop 25.3.1
UXP 7.3.0