Why HEIC is the format that will not open
HEIC is not one thing: HEIF (High Efficiency Image File Format, ISO/IEC 23008-12) is the container, and HEIC is the flavor of it that holds video-coded frames - specifically HEVC. iPhones have saved photos this way since iOS 11 because the same picture takes roughly half the bytes of a JPEG at the same visual quality, which on a phone with a small disk is the difference between two thousand photos and four thousand.
The reason it will not open has nothing to do with the file and everything to do with the decoder. HEVC is patented, licensed per device and usually implemented in the operating system rather than in the browser, so Safari 17 and later - which can hand the job to the system - opens HEIC happily, while Chrome, Edge and Firefox do not decode it on any operating system. It is not a bug in your file. It is, however, something a page can work around, which is the next paragraph.
So this page decides per file: it looks at the first bytes to see what the file really is (a HEIC renamed to `.jpg` is common, and the name is not evidence), asks the browser to decode it, and when the browser refuses the format it loads its own decoder - a self-contained HEIC decoder, 1.4 MB raw and about 440 KB over the wire, served from this origin. That download happens once per visit, only for a visitor who actually brought a HEIC, and never on the first screen: someone converting JPEGs pays nothing for it.
The other half of the confusion is AVIF. It is also a HEIF container, but the picture inside is coded with AV1, which browsers do implement, so AVIF needs no help at all. HEIC needs the decoder described above, and once it is there both convert the same way - the only difference is which decoder did the work.