I haven't used my Surface dock in many months, so for me that's not related.
Depending upon the day, my Surface may be in sleep mode the entire day. Or on some days, in and out of sleep mode throughout the day. Sometimes for brief periods to look up stuff at work and sometimes for more extended sessions when writing memos, doing scheduling, etc.
I do run the Microsoft PowerToys on my computers. Do you? I've been running them for a while and didn't have this issue in the past while running them. So I can't see them explicitly causing the problem...But I just updated from 0.20 to 0.25 after posting my original message just to see if it makes a difference this week.