Framework 16 running KDE Plasma on NixOS and experiencing the same— or possibly the more specific issue of wake up when unplugged that is mentioned in this thread: [TRACKING] Framework AMD Ryzen 7040 Series lid wakeup behavior feedback - Framework Laptop 13 - Framework Community
There is a workaround mentioned that i will try, and then see if there are any other spontaneous wakeup issues.