IDE hangs while downloading index package Rp2040

It seems common and is probably not a fault with your port.

I also had that issue with an index failing to download and I was able to make it work by unplugging or plugging in a board (I forget which).

Others report that opening and closing the Serial Monitor also fixes the problem.