iMac 27-inch Retina 5K display randomly shuts down and then requires SMC reset to boot
iMac 27-inch Retina 5K display randomly shuts down, and then requires SMC reset to boot. It may happen while working with it, or while idle. In normal booting or even in Safe Mode booting. May happen a few minutes after booting or after several hours.
Resetting PRAM or SMC does no fix it. The issue arose with macOS 11.3.1 (20E241) Big Sur, after upgrading from macOS 10.12.6 (16G2136) Sierra. The Mac is shutdown all days overnight.
System: macOS 11.4 (20F71) Big Sur on iMac18,3 (mid 2007). Booting from Samsung Portable SSD T5 2TB.