edit: I looked here:
https://www.msi.com/Motherboard/MPG-Z390-GAMING-EDGE-AC/support#utility
in addition to the bios and driver updates there is a LED firmware update also., bios updates include various USB and sleep function fixes.
if you have thunderbolt, I guess it would be addressed in the intel chipset driver update. the realtek audio driver does not have the date listed, just the version number.
Looks like thunderbolt is a addon card for this motherboard. Not sure where you would get firmware updates for the card.
------------
I assume tb refers to thunderbolt? if so, look for updated firmware and drivers for your thunderbolt hardare. I would think all of the usb subsystem is emulated via the thunderbolt hardware and running usb communication will force windows to log a one line entry into the internal UBS log. With RBG software running you will get a one line entry with each color change of the LED lights.
This logging can generated hundreds of thousands of log entries per second and cause the system to really lag. (it will not fail until it lags 501 seconds)
anyway, try to update the thunderbolt firmware and drivers, then try and disable your RGB software. I would also go into control panel device manager and disable any sound source that does not have a speaker connected to it.
If you have a realtek sound chip on your motherboard, update the driver to a version that is newer than 2020. Old versions (bug) would respond to sound DMA channels that were intended for other sound devices. This corrupts the sound on other devices.
some AIO coolers generate a lot of USB log files. Some USB network adapters can be effected (this includes bluetooth wireless devices).
anyway, try some of the above to see if it helps. If you still have issues i can tell you what/how to debug what the problem is.
NOTE: with these types of problems you have to update the BIOS and the various firmware updates as well as the drivers together.
(otherwise you can introduce more problems with mis matched driver/firmware/bios versions.)
To look at the internal logs, you have to create a kernel dump of the system and use a windows debugger to look at them. (if they are the correct format, then often you will see the errors in the log entries. Either thousands of error messages or thousands of useless log entries changing the LED color from color 31304 to 31305. (or something just as useless)
I think microsoft windows is thinking of banning these apps and creating their own service to prevent this type of problem. The app would have to be redesigned to use the microsoft service.
something is wrong with your NDIS subsystem
you would update, the bios, the network drivers, the bluetooth drivers and any wifi network driver. Reboot into BIOS then change any setting and change it back. Save the configuration and reboot back into windows.
If you still have the problem, you would have to google
how to force a memory dump using the keyboard. Make the registry changes, then change the memory dump type to kernel
memory dump. Reboot and when the system starts to fail, use the keyboard short cut to force a memory dump. Then put the kernel memory dump on a server, share it for public access and post a link. I can take a look in the debugger and see why the queue is so big.
I think the debug command !dpcwatchdog might show the info.
note: if you have nvidia share or shadow play running try disabling it.