This happened to me 3 times yesterday on my 14" M1 Pro. Hadn't happened yet until yesterday. I was plugged into an external monitor and a dock with some external drives. The mouse freezes, followed by a bright green and pink flash, then total shutdown. I sent my crash report to Apple. I'm now counting on updates for a lot of fixes. Just hope they follow through.