Mac goes to sleep directly after session opening
My MacBook Pro (15-inches, 2019) goes sometimes to sleep by itself just after start-up and opening my session. It's like it is put in deep sleep mode as I have to wait 2-3 minutes after the display gone black to get it back on (by touching any key) and it asks me for my password, not Touch ID as it would for a "standard" sleep.
As sometimes I also got the big red battery warning (with a battery above 50%), I initially thought about a battery management issue. I tried resetting both SMC and NVRAM without success.
I took my Mac to a Genius Bar, they ran some tests and didn't find any hardware issue. So there is definitely something wrong in the system. But before wiping out my Mac and taking hours to reinstall and set-up everything on a clean install, I wanted to know if someone had an idea (and a solution!) of what the issue could be.
The two last times I had the problem, I noticed the same `lsd` crash report in Console.app. I searched about this on the forum and found a solution with this terminal command, which didn't solve the issue (I tried this yesterday and I got the same issue today):
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
I attach both the EtreCheckPro and `lsd` crash reports.
MacBook Pro 15″, macOS 11.2