Having the same issue with my M1 Pro & UAD. Already reported.
The only thing that helps me is to switch the UAD off during periods of sleep.
Alternatively you could disable sleep.
Same issue here, and turning off UAD and disabling sleep/screensaver all didn't help.
My solution was to install a mouse jiggling python script to keep the mac alive while I'm AFK as constant action prevents the kernel from panicking - https://pypi.org/project/jiggler/