Your issue is different. No idea what it means, a lot of the log was cut because you didn't log the whole stack trace.I have the same issue in my Xiaomi Redmi Note 5 Pro, MIUI v10.2.2.0OEICNXM. This is the result of-> linkCode:adb logcat | grep gallery
I have cleared the cache data, but it did not solve the issue.Clear app data for Gallery app.
Another way is with ADB shell:Deleting gallery.db and gallery.db-journal in /data/data/com.miui.gallery/databases/ with TWRP solved the issue - source.
Thanks!Another way is with ADB shell:
adb shell pm clear com.miui.gallery