Galaxy S7 edge freezing randomly after installing Android Oreo [troubleshooting guide]

Galaxy J7 reboots randomly, showing “Touchwiz isn’t working” and “Facebook has stopped” errors