Macbook Air M2 Keybord and trackpad

Im using MacBook Air M2 2023 I bought it about 2 weeks ago. 2 days ago after night I opened Mac and inbuild keyboard and trackpad were not responding to any actions, only power off button was working, So after several restarts it is working. If I use it with small intervals its ok, but if I close it for more a night In the morning it happens again, need to do restart Im using Sonoma beta version for all period of using this Mac Yerstaday I upadate it to latest version but still problem is here

Macbook Air M2 Keybord and trackpad
 
 
Q