It could be due to heavy processing, an infinite loop, or memory overload. Try checking your code for loops or large data handling. Run the script via terminal to see errors, and monitor CPU/RAM usage in Task Manager. Also, make sure antivirus isn’t blocking Python. Share your script snippet for more help!