Since about a week ago, nearly every time I run a python script on Pycharm that has an error, Pycharm freezes for 10-30 seconds. It makes it all the way through the script and prints out the error and process exit code, and happens on any script I've been working on so I don't think my code is the problem. Occasionally it freezes for long enough I have to kill pycharm from task manager. This never happens if I'm just editing or if I'm running an error free script. It's very frustrating and killing my workflow.
I'm running Pycharm Professional 2020.3.1 PY-211.7628.24 (just checked and there are no new updates available) on Windows 10. My interpreter is setup to run through WSL with Ubuntu 20.04, not sure if that matters.
I searched the issue and could not find anyone else posting about the same problem. The closest I found was a post that could fix the freeze by pressing Alt, this does not work for me: https://youtrack.jetbrains.com/issue/PY-37504
Has anyone experienced a similar issue or know what could be causing this?
Thank you in advance.