Fan noise is a symptom. Find the swift-frontend, tsc, or webpack process behind it with top and ps, trace it to a project, and stop it without losing work.