My iMac Retina 4K 21.5 inch late 2015 model has suddenly started crashing.
The crashes come in two forms: either I hear the fans briefly working then get a message that my computer is restarting because of a problem; or the screen starts to flicker and then freezes, followed by it restarting. About 3 months ago I swapped out the old fusion drive for an SSD but it has been working fine since then. Grateful for any thoughts on what might be the cause. I've tried restarts and resetting the SMC; and I've disconnected all the peripherals. It's running Monterey 12.7.6
iMac 21.5″, macOS 12.7