Kernel panics appear while in sleep
Dear community,
My Macbook Pro 16" (2019) has kernel panics while in Sleep-mode. It happened just a few times when trying to wake up but since a few weeks, after updating macOS to 12.2 and 12.3, the sudden reboots drastically happen more often.
Usually, the screen goes blank and the fans spin up to full rpm. After rebooting, the booting process stops just before the middle of the process bar during the boot, followed by a second kernel panic where the fans spin up and a reboot occurs again. This happens in a loop, ending with four interruptions in total before the screen shows "support.apple.com/mac/startup" without any error code. After rebooting again and going through a few reboots again, the system finally boots up fully and greets the user with the message "Panic Medic Boot" (The panic medic boot message only recently started to appear).
To troubleshoot all of this, I was told to upgrade the software to its newest version, to re-install macOS and to try it in safe-mode. This, so far, did not help. Additionally, I unclicked every option concerning the graphics card change in the settings menu, as referenced by others in the support community (source is following soon). I also reset the SMC and the PRAM/NVRAM, deinstalled applications that could potentially be the trigger for the kernel panics, deleted LaunchAgents and LaunchDaemons that could potentially force the kernel to load extensions and made sure to remove all login items in the "Users & Groups" pane in the settings.
I initially assumed that there might be a problem with the graphics card due to:
panic(cpu 10 caller 0xffffff7fa8b7b749):
GPU Panic: [3:0:0][PPLIB] Failed Power Play Initialization. TTL Error Message:
{} --> {10715194226:[3:0:0] Error SW_IP_CLIENT_ID__SMU: event_id=0xc0140406
event_info:type=3 hw_id=0 event_specific_tag=0x6 pData=0 data_size=0 %s %s %d %s}.
: 8661iE8_11iE1_ : mux-regs 5 3 3 7f 1f 0 0 switch-state 13 IG FBs
0 EG FBs 0:1f power-state 0 3D idle HDA idle system-state 0 power-level
20:20 power-retry 0:0 connect-change 0 WS-ready 0
Panicked task 0xffffff950c492d10: 11 threads: pid 142: WindowServer
Backtrace (CPU 10), panicked thread: 0xffffff903e553550, Frame : Return Address
[...]
Kernel Extensions in backtrace:
com.apple.iokit.IOGraphicsFamily(594.0)[...]
dependency: com.apple.iokit.IOPCIFamily(2.9)[...]
com.apple.kext.AMDRadeonX6000Framebuffer(4.0.8)[...]
dependency: com.apple.AppleGraphicsDeviceControl(6.5.7)[...]
but I assume there could be other loaded kernel extensions which could cause the error.
Here is a link to the latest Apple report: https://pastebin.com/4pT06kUp
and here is one to the EtreCheckPro report: https://pastebin.com/RdvMkf13
I am lost and I don't know what else to check in order to find the source of the problem.
Could anybody please assist me?
Many thanks.
MacBook Pro 16″, macOS 12.3