Zend certified PHP/Magento developer

PermissionError: The process cannot access file because being used by another process: ‘C:\Users\\AppData\Local\Temp\scipy-36p0uzzx’

I’m using an open-source program that runs through thousands of operations in sequence and “scipy” is one of the libraries being used. At some random iteration, I get this error and the process dies leaving me to find out the process I wanted to run overnight doesn’t.

It makes no sense though. How is this file blocking itself? I have Windows 11, Windows Defender, Malwarebytes Anti-exploit… I don’t know which if any could be causing the problem. The files truly are temporary because when I go to find them after the crash, they’re not even there so there’s no way to know what is using them in the first place.

If I watch the temp folder, I can see files of that naming convention appear and disappear at unknown intervals. When it does show up, it disappears again almost instantly.