All the missing images were all saved on the SD card? Would you please launch Google photos app to check whether the photos exist or not? please tell us the result.
Finally,please try some steps as below,
1.Update "FileManager" from Google play to the newest version
2.Use "FileManager" rename the folder which you can't see at Gallery
3.Launch Gallery and check if the new Folder appear