HEVC images and error message Discourse::InvalidAccess

One of the photos I talked about in my first post, renamed as .heic:

If I try to upload it as .jpeg I get:

Interesting. And a different message than what I got in my own forum. And because the photo with the USB sticks is also HEVC/HEIC, but uploaded as IMG_1018.jpg (I was able to see this when it was uploaded).

Something is strange here…