There is a tool called Media eXperience Analyzer (MXA) from Microsoft that is specifically for trying to find audio/video glitches in media playback. It would need to be installed on your computer and then you'd use the GUI version of Windows Performance Analyzer (WPA) to first import a performance profile that comes with MXA and then run a WPA trace with that profile enabled in WPA. However, there doesn't seem to be a way to save the trace to memory during the trace when using that profile - only to a file - which could generate traces with lost events like before. Also, the trace grows very large very quickly with that profile so if the problem isn't able to be reproduced in a short amount of time the file will likely be unusable.
Do the glitches happen randomly and only once with a long gap between glitches or does the system keep glitching constantly in rapid succession after the initial glitch?