Brian Breen wrote:
My MacBookPro (2019) after it goes into sleep mode, will not come out of it, forced to do a hard restart, after boot-up it gives error msg "Your Mac quit because of a problem."
Kernel Panics are predominately caused by hardware faults or faulty third-party kernel extensions.
Learn what to do if your computer restarts or shuts down unexpectedly, or you get a message that your computer restarted or shut down because of a problem.
If your Mac spontaneously restarts or displays a ... - Apple Support
https://support.apple.com/en-us/HT200553
Uninstall any and all third party Antivirus, Cleaners, Optimizers, VPN, speeder uppers....
all known to cause issues on the macOS
To trouble shoot further you can:
—Try a SafeBoot https://support.apple.com/en-us/HT201262
Takes noticeable longer to get to the login screen, does a 5 minute disk repair before it fully boots up, and certain system caches get cleared and rebuilt, including dynamic loader cache, etc.
Login and test. Reboot as normal and test. Caches get rebuilt automatically.
In Safe mode third party system modifications and system accelerations are disabled, it removes malware, etc hampering smooth operation, however a reboot will put it back to normal mode.
This test will tell you if third party interference; extensions etc are not loaded in safe boot mode.
—Test issue in another user (or guest user) account https://support.apple.com/guide/mac-help/set-up-other-users-on-your-mac-mtusr001/mac
This will tell you if it a universal issue or isolated to your user/admin account.
if no insight or resolve—
You can get a good look at your System config. and reveal conflicts or issues, you can download/run this trusted utility https://etrecheck.com