AMD won't sleep properly

I think you’re seeing [TRACKING] Framework AMD Ryzen 7040 Series lid wakeup behavior feedback - #54 by Gawdl3y

Look at that thread and try the udev rule or don’t suspend before closing lid.