Powered off or in sleep mode?
At least when it’s sleeping (in suspend mode), external devices connected through USB can still draw power, and even the USB-A extension cards draw power when they’re in the wrong slots (the rear ones), even when no device is connected to the USB-A port, see Expansion Card Functionality on Framework Laptop 13 (AMD Ryzen™ 7040 Series) and What exactly does "Higher power consumption" for expansion 1 and 3 mean? - #19 by Daniel_Gibson
Not sure if that also happens when the laptop is powered off.
Another related problem: When it’s sleeping it can be waked up unintentionally by pressing the touchpad - this can also happen when the lid is closed and you carry the device around or it’s in a bag or similar, when the lid/display presses on the touchpad.
That can be prevented by disabling wakeup by touchpad. On Linux that can be done by running the following in a script after each boot (as root):
echo disabled > /sys/devices/platform/AMDI0010:03/i2c-1/i2c-PIXA3854:00/power/wakeup
If you’re wondering where that path comes from:
$ sudo libinput list-devices
lists, among other things:
Device: PIXA3854:00 093A:0274 Touchpad
The nodes in /sys/ for configuring if a device can wake the system are always like /sys/*/power/wakeup
So I ran
$ find /sys/ -wholename "*/power/wakeup" | grep PIXA3854:00
and it gave me the path used above.