Mac completely freezes when waking up from sleep
This is a common problem with Macs, but it's usually easy to fix. You probably just need to reset your System Management Controller (SMC), which controls things like how your computer sleeps/wakes and responds to opening the lid from sleep, etc.
If this does not work, you could go a step further and reset your Nonvolatile Random- Access Memory (NVRAM) and/or your Parameter Ram (PRAM). These two things store small pieces of memory related to your system settings. The SMC, NVRAM, and PRAM all sometimes contain errors, or simply bug out, which just requires a quick resetting of their stored information. Sometimes the steps for resetting each differs depending on your model Mac, so I suggest reading through Apple's Official docs on their steps here:
How to reset your Mac's SMC
and
How to reset your Mac's NVRAM or PRAM

I hope this helps.