I too have been having this issue with Sonoma every day since begining of October 2023 - my mbp is a 2018 Macbook Pro 15" with Intel chips and touchbar.
I put it to sleep the previous night, and in the morning, when I wake it, it restarts, prompts for password (twice now, with Sonoma), and then pretty much restarts with always same error message that starts with "AMDFrameBufferVIB::SetPowerState"...and then the error log with last started kext "BHIDKeyBoard"..etc.
For the benefit of everyone else here, let me say that I have tried everything, to no use. Hardware checked OK at Apple store. Then I erased disk fully, and reinstalled Sonoma (at the time it was 14.1), removed all peripharals (just couple of ext monitors), and did nothing else. My laptop still crashed with same errors and same repro patterns. This led me to conclude that it is related to OS only. Since then, I restored my laptop back from timemachine, updated to 14.2.1 and of course still same issue every day.
I have to say, during the days of 14.0 and 14.1 and even 14.2, in addition to the daily crash-on-wake problem, the OS would also hang randomly through the day causing me to restart. However, with 14.2.1, this problem is gone. So, once I get past the every morning crash-on-wake problem, (then rearrange ALL the windows), I am good to go till I manually put it to sleep again.
I am hoping 14.3 will be the one to make Jobs proud again...but lets see.