

Safe Mode excludes any third-party kernel extensions, which could be causing the issue. Boot into Safe Mode. Press and hold the Shift key while your system starts to boot into Safe Mode.Run Apple Diagnostics. To do this, press and hold the D key while you boot your Mac, and then see if any hardware issues are detected.If you find any issues with RAM, you can try replacing it where possible. Run memtest86 to test your Mac’s memory. You’ll need to create a bootable USB flash drive and test your computer’s memory outside the macOS environment.
MIGHT TEXT FOR MAC FREE

It could indicate a problem with hardware, such as RAM or CPU. This is the Apple equivalent of Microsoft’s Blue Screen of Death, and you often see the “Your computer was restarted because of a problem” error when your machine reboots. Sudden and frequent restarts, particularly those accompanied by an onscreen warning, are known as kernel panics.
