Microsoft has now admitted that the January security updates for Windows 11 23H2 can interfere with sleep mode and shutdown.
It is the first thing you can try to bypass the problem temporarily. If one or more users are already logged in, you must shut down your PC again. You can restart your computer and then shut it down.