iMac stop working and shutdown
My old iMac Late 2015 with a 3.3 GHz Quad-Core Intel Core i7 processor, running MacOS Monterey 12.7.6 (the latest available) started to lock up and shut down on its own after a few minutes (sometimes after a few hours).
I installed the same MacOS on an external SSD, restored the data from TimeMachine, but the problem hasn't been solved (it works faster).
I installed the same MacOS on a new external SSD, without restoring from TimeMachine, but the problem persists.
When I boot any of the 3 MacOS in safe mode, the Mac always works fine.
On the first two MacOS (with my data) I suspected that some application was causing the problem, but seeing that the problem is also present on the clean MacOS (the third), I can't tell what the source of the problem is.
Can you help me identify the problem?
If the Mac works fine in safe mode, how can I identify the process (or hardware) causing the problem?
Sometime, the Mac (in normal mode) works good, until I start using some "consuming" app (for example, Final Cut Pro or some rich page in Facebook); when I start using those Apps, the Mac block.
Many thanks for any suggestion or idea to identify and solve the issue.
iMac 21.5″, macOS 12.7