How to fix Galaxy S9 “Unfortunately, Gallery has stopped” bug [troubleshooting guide]

Samsung Galaxy S2 errors, problems, solutions and workarounds