Hi PolarBear123_456,
Thank you for reaching Microsoft Community. Apologies for the inconvenience this has caused you.
Just to confirm: You mentioned that this only happens when the typecover is connected then you wake the device from sleep, how about when you turn the device on from a shutdown or if the typecover is not connected? Do you get the normal black Taskbar?
How about when you turn off the Transparency effects in Settings, what happens?
Kindly try first running these steps on the device then see if the issue persist:
1: Run Surface Diagnostic Toolkit
See: Fix common Surface problems using the Surface Diagnostic Toolkit (microsoft.com)
2: Check for Windows Update
Go to Windows Settings > Update & Security and select Check for updates
Make sure all updates need are installed including Optional updates
3: Update drivers and firmware
Check what is the current OS Build of your Windows version by going to Settings > System > About.
Go to Download driver and firmware for Surface, choose Surface Pro
Then click the link next to Surface Pro 5thgen then click Download on the next page.
Choose the .msi file that matches your current OS Build and click Next.
After downloading, run and install the .msi then Restart.
4: Run System File Checker Tool
See: Using System File Checker in Windows (microsoft.com)
Hope this helps.
Kind regards,
Marrion