Some Stuff, You can check:
- Are Secure Boot and Fast Boot in BIOS disabled?
- If Windows is installed: Is Fast Start-Up in Windows disabled?
- Because You have Nvidia and Intel Graphics: Does Your System run in Wayland or X11? You can check that in Settings>About.
- Maybe this can help: Poweroff after login when lid is closed - #5 by StarTreker