If the nonstop to SJC is cancelled and for some reason there is no availability on a convenient service to SFO, there are endless connections LHR-XXX-SJC/SFO. It is beyond unlikely that there will not be one which has good connections and availability, this far out.