Problems with sleep/resume were what ultimately convinced me to switch from Linux to Mac 12 years ago. It's insane to see there are still issues with it today.
Well, as I’ve said in a different comment, there is a very clear reason why the computer does not come configured properly for Linux sleep modes. Windows is using a new sleep system that seems to involve disabling a sleep mode in the BIOS, and the laptop arrives installed with Windows. Once you install Linux, you just need to go in to the BIOS and change the setting from windows specific sleep modes to traditional sleep modes, and then after you reboot you need to tell Linux that sleep mode is now available.
It’s not a problem with Linux, it’s just due to the fact that Linux and windows are different and the laptop is configured for windows. Once you make the change the sleep behavior is wonderful and I keep the laptop in my bag for days at a time on sleep.
I actually have this problem with 2017 MBP. If I put lid down with anything less than 10% it will black screen and repaired a hard reboot upon opening the screen. Fortunately these days most apps have auto save.
Problems with sleep/resume were what ultimately convinced me to switch from Linux to Mac 12 years ago. It's insane to see there are still issues with it today.