Crash in libnvidia-glcore.so and pthread_mutex_lock asset failed

I am using Qt’s QOpenGLFramebufferObject framework to use opengl to render and play videos on an ubuntu20 machine equipped with an Nvidia graphics card. After running for a while, the following crash occurs. The graphics card model I use is RTX3090, and the graphics card driver version is 530.30.02. . Then I upgraded the driver to 535.98, and the same crash occurred. But when I run the same program on RTX 3060 and drive 530.30.02, there will be no crash.
I searched for relevant information on the official website, and there is such a macro __GL_THREADED_OPTIMIZATIONS, but it seems to have no effect no matter whether I set it to 1 or 0 through export.
Or pass the following command
env LD_PRELOAD=“libpthread.so.0 libGL.so.1” __GL_THREADED_OPTIMIZATIONS=1 app
They will all collapse

Please run nvidia-bug-report.sh as root and attach the resulting nvidia-bug-report.log.gz file to your post.