Go to Settings - Apps and tape the 3-dot overflow menu, and select Show System. Find Gallery and tap into it, then tap Storage and then Clear Data. Repeat for apps External Storage and Media Storage. Reboot and wait a MINIMUM 5 minutes after boot appears complete and try to open Gallery again.