How do you fix it without harming yourself. It’s a prisoners dilemma every person is optimizing for themselves and the individual maximum is burbs. Collective maximum is urban but I see no way to get there in a democratic society.
Right now the burbs are able to zone out or otherwise not have to deal with homeless, poverty, subsidized households, and lock in local tax revenue to high earners. As such burbs are the only good individual choice