2017 MacBook Pro 13 inch shuts down when closing the screen.

Hello everyone, this is my first time posting here. I was wondering if anyone has experienced the same or similar issue with a MacBook laptop. So I have my MacBook with the latest OCLP version 1.5.0 and runnign the latest MacOS Sonoma 14.5. I have 3 partitions. Sonoma, Windows 11 and macOS Mojave. So the issue here is that the computer boots again whenever I close the display for an extended period of time. If I'm working with the computer and close the screen for some minutes, it just wakes up from sleep; however, whenever if I close the screen and leave the computer untouched for some hours (maybe an hour or so) the computer starts from the boot screen. I must say that the battery has a good charge so I honestly think it has something to do with the battery. I checked with terminal to see if the shutdowns are normal and they are. I totally lost and it drives me bonkers that the system reboots all the time. Any suggestions or help will be appreciated.

submitted by /u/inuppercase
[link] [comments]