To concur with @fexnok – the issue is present regardless of the presence of external displays. The glitches appear on all displays when it triggers.
My projects involving WebGL have concluded, which corresponds directly to the glitches not occurring as often, but as I have mentioned before multiple times above, all you have to do is to keep a WebGL-intensive website running (an easy test is to visit https://www.shadertoy.com/), let your mac go to sleep and upon waking up, there's a very high chance of seeing the glitch.
There is also the chance that software publishers are aware of the glitch and have simply elected not to use WebGL views in their applications to prevent this in their products. However, Chromium-based desktop apps have a dead giveaway – just toggle the Developer Tools window (if it's available) and you'll see the glitches when it triggers.
As it stands today, this is still a critical issue. To date, since April 2020, we still do not know if this is hardware or software-related. It's not on Chromium either, other applications have exhibited similar artifacts (Safari).
This isn't about putting the blame – it's about identifying and fixing the problem so that we can get on with our work effectively.
PS it's really unfortunate that this thread has an 'answer' which isn't true, and throwing off folks who are encountering the same problem. It will be great if Apple can unflag resetting NVRAM as the solution. Also, the way the thread shows just that first page with a purported 'solution' is misleading. We've hit 10 pages of comments – unfortunately most of them being "disable H/W acceleration fixed it for me!"-type responses. Again, not helpful or valid for those of us tearing our hair out on this glitch.