Can you tell us what version of XD you are using, as well as your OS. Have you tried copying the artboard into a new file and trying again? Just trying to isolate the issue for engineering.
Thanks for your response. I use version 220.127.116.11 of adobe XD and I use a macbook air M1, 2020. I tested isolating the artboard in another file, but it didn't work. It seems it has to do with the fact that the images that don't appear contain masks. I removed one of these masks and the file exported correctly. But that shouldn't happen because I need the images inside the masks