Through visual editor, you can't upload your own images DIRECTLY to the gallery. It asks you to upload an image individually somewhere else and then search the media and post it in the gallery. When the "Add to Gallery" option was still available, this wasn't even an issue. Also if I type the EXACT filename in the source editor it literally just adds an image with a black background and the red link (which I typed) in the middle of it into the gallery, although I follow every step.
@Oot42 btw, just like in the images you sent, it asks you to search for an ALREADY UPLOADED file i.e asks you to add images which already exist on the wiki. When the option was still there, you could directly upload images from your PC to the gallery, even if the image didn't exist on the wiki before.
I know that adding images somewhere else and adding it to the gallery isn't really a problem, but the bureaucrat in the wiki I'm active on considers it vandalism and deletes it.