For whom is using the MaterialDesign libraries, it happens not only after going to sleep-mode but even after a simple screen-lock (Windows-L shortcut).
I solved adding this line to the Window element of the xaml file:
materialDesign:ShadowAssist.CacheMode="{x:Null}"
Hope it helps.