In the US, they are required to provide care for actute condition (meaning chronic, aka: along term conditions like cancer or diabeted can be legally ignored), so if you are about to die, they are required by law to stop you from dying.
Worry about the debt later. Or just ignore any invoices/bills... they can't seize anything if you have no assets, debt is gone in 7 years.
Edit: If they ask for your social, say you forgot. Don't provide anything other than basic name, birthday, gender, that sort of stuff.
If they ask for social just refuse to give it. You don’t even need to give them your real name. They still must treat you.
The last time I was in an American ER they asked for my social before starting to work on me. I told them, very angrily, that I will never give them that info because the last time I did, and paid my bill, it still showed up on my credit report as a collection. It took months to remove. The nurse asking me said okay with no further problems. They began treatment immediately.