US states are forbidden (with some exceptions and loopholes) from issuing debt. I would guess that one of the main reasons why this limitation has never been lifted is exactly to avoid a situation like the one you describe. The Puerto Rico debt crisis has shown that this is not a purely theoretical concern.