Edge works just fine, but Chrome keeps crashing, so it must be something about VS itself. I still don’t know what causes this problem, it just suddenly turned to be like this.
Solution 1
Tools > Options > Projects and Solutions > Web Projects > Stop debugger when browser window is closed
Untick this option.
Solution 2
Tools > Options > Debugging > General > Enable JavaScript debugging for ASP.NET (Chrome, Edge and IE)
Tick this option.