M4 iMac shuts down when asleep, difficult to start up
My M4 iMac occasionally shuts down when asleep, and then is difficult to start up. I'm running the latest version of macOS each time it happens. I have two USB drives attached (for Time Machine and SuperDuper).
When I attempt to wake up the iMac after a few hours asleep, sometimes I find the iMac has shut down. It then takes several attempts at the Startup button, and around three cycles of attempts (password entry and re-entry) to get the computer to complete the boot process and allow me to sign in before we are back to normal. Then all is fine until the next unpredictable time this will next occur between a few hours and many days ahead. I sometimes hear a slight click sound from the computer (or possibly one of the attached USB drives) when this cycle of booting and rebooting occurs.
I will appreciate any advice for troubleshooting this not too critical but annoying unpredictable performance.
iMac 24″, macOS 26.3