When driving becomes too expensive there is definitely going to be a lot of abandoned sprawl but there's also plenty of decent places to live. By definition, few people live in the sprawl. It's a shame that they wasted so much of their and your money building out those subdivisions in the middle of nowhere, but that's a sunk cost now.
NIMBY-ism is also a problem in the few places of the Valley that do have decent transport, though I think it's the secondary problem. One place it's noticeable is Palo Alto: why isn't there high density housing near the Palo Alto Caltrain station (which is also conveniently near Stanford and a number of tech companies)? Because Palo Alto homeowners don't want anyone with less than a $1m house to live there. However afaik this is a minority situation in the Valley, and most of it just doesn't have decent transit that could attract high-density housing in the first place. San Jose has also been more development-friendly, although it's too bad there that the VTA light rail is so near-useless, or that area could plausibly have a more urban feel.