Well, at least it sounds like the opposite problem that the Bay Area has! And yet the real estate in Toronto is just as expensive?
SF has:
A) Earthquakes B) The Bay is a hodgepodge of cities. TO is mostly one big city under the same management. C) SF has quirky and specific views of 'how they ought to be'. Oddly conflicting at times.
There's plenty of geography around the Bay - there's no reason that SF 'has to go vertical' while the other areas don't.
Too much blame on SF.
If it's safe to put 25 story residences in SF surely it is also in Palo Alto and Freemont etc..
Or maybe tech could find another hub?