I knew someone in the 90s who was born in Sarajevo and was stateless after whatever country he was born in (I'm going to say Yugoslavia?) ceased to exist. Searching this now I see the UNHCR had a campaign to get such people papers[1] so I guess he would have resolved this by now. Anyway at the time he was living in Britain as a refugee and couldn't or didn't want to leave the country, fearing that he either wouldn't be able to leave (because no other country would let him enter), or wouldn't be able to return.
[1] https://bosniaherzegovina.un.org/en/234262-live-without-nati...