@gamingonlinux
I ran into this and searched everywhere for a solution. No joke, I saw a random comment from someone on Reddit saying to remove the MicroSD card and then reinsert it. I did that and the problem went away. I don't know exactly what loop the SteamDeck got into involving the MicroSD card, but doing that got it to stop. SteamDeck sleeps and shutsdown fine now.