R5 3400G, asrock A320 motherboard, G.SKILL 16G DDR4 2666, operating system: WIN10.
The SSD hard disk has been replaced, the mechanical hard disk has been replaced, the memory has been replaced, the motherboard has been constantly blue screened, and the system freezes.
After installing a discrete graphics card, the problem disappeared. Several recent versions of the official website driver have been tried.
Error message: thread stuck in device driver
I don't have a solution for you, but I have also been faced with the BSOD with "thread_stuck_in_device_driver" using our sole Ryzen 5 3400G with ASRock B450M-HDV motherboard.
I'm working on it and hopefully I can find a stable solution.