I don’t have any actual knowledge of the software in question. I’m assuming it does some sort of initialization that loads up all 6 cores (12 threads) of your CPU, for long enough to exceed its critical temperature threshold.
There are a few things intended to keep this from happening. First, your CPU should throttle back its clock speed, when it breeches a soft threshold. Check any overclocking utilities and BIOS settings to ensure you haven’t disabled this feature.
However, there might be a problem with your CPU heatsink. It might be making poor contact with the CPU, or perhaps there’s insufficient thermal compound or an air bubble, etc. If this system is still under warranty (which I’d imagine, since that CPU model was only launched earlier this year), I’d recommend contacting the vendor and seeing if you can get get it serviced or replaced. They should have some diagnostic test which also stresses the CPU and can reproduce the problem.
Perhaps others can speak about what the library is doing and whether there might be any issue at that level. However, no matter what a library does, it really shouldn’t be possible for it to overheat your CPU to the point of triggering a thermal shutdown.
I wish you luck in resolving this frustrating issue.