This is absolutely a Sonoma issue. Using MacBook Pro M1 max. No issues at all until installing Sonoma last week. I've talked to tech twice, shut down all background apps and start ups, shut down all apps, removed all USB devices and re-installed Sonoma. Even after all of that, if I leave the computer idle for an hour or two - it just shuts down.
The Panics logs (I've collected 11 so far) are all identical regards of apps on or off. This is the start of the log. You might check to see if there are similarities.
panic(cpu 1 caller 0xfffffe002ae643b4): DCPEXT0 PANIC - apt firmware: adisp.c:1323 piodma_control() -- - iomfb_mailbox(69)
apt firmware: adisp.c:1323 piodma_control() --
RTKit: RTKit-2413.1.1.release - Client: local-t600xdcp.release
!UUID: 4bcc7a73-3ced-3fd9-a1c7-3238cf8e94ac
Time: 0x0000006cdb5db1d7