BSOD frequently occurs when compiling shaders

This problem has troubled me for a long time. When I do anything related to compiling shaders, there is a high probability of causing BSOD: system_service_exception.
For example, I create a material and click Apply. Or create a material node, or open a new project that needs to compile the shader (sometimes it will be BSOD when the shader is compiled at the beginning, sometimes it will be BSOD after a while) I think The probability of BSOD is 10%, so I have to save the project at any time every time I edit the material.
Hope someone can tell me the solution

I don’t know if anyone has the same problem as me