A 5.0 probably wouldn’t do anything. The 1989 quake was 60 miles away and a 6.9-7, almost 100 times stronger.
A 6.5-7.0 on the Hayward fault will drop this bridge-permanently-if it happens before the complete set of upgrades is complete.