crashes after sleep

In your case, Shutdown 5 is a normal shutdown.

So regarding Shutdown -20,

Start up in safe mode

  1. Start or restart your Mac, then immediately press and hold the Shift key.
  2. The Apple logo appears on your display.
  3. Release the Shift key when you see the login window.
  4. If your startup disk is encrypted with FileVault, you might be asked to log in twice: once to unlock the startup disk, and again to log in to the Finder.
  5. To leave safe mode, restart your Mac without pressing any keys during startup.

Check after this whether the issue persists or not. If not, then do the following step:

Reset NVRAM or PRAM on your Mac

Shut down your Mac, then turn it on and immediately press and hold these four keys together: Option, Command, P, and R. You can release the keys after about 20 seconds, during which your Mac might appear to restart.

Test after this.

If this doesn't help then at last try to:

Reset the SMC on Mac

First, shut down your Mac and Press Shift-Control-Option on the left side of the built-in keyboard, then press the power button at the same time. Hold these keys and the power button for 10 seconds. Release all keys. And, Press the power button again to turn on your Mac.