I have cleared the cache data, but it did not solve the issue.
Here are screenshots from Settings -> Installed apps -> Gallery (there is only option: Clear cache, not: Clear data):
When I try to open Settings -> System apps -> Gallery, it also crashes - see log file.