IMac malfunctions and powers off unexpectedly.
Yes, it includes a system log similar to Windows, allowing you to review errors.
No issues detected during the diagnostic run.
I have no ideas left. Sorry.