Both the 50 M$ valuation rule and the 5 year clock start time apply when the stock is exercised.
Note, however, that the "valuation" from a QSBS perspective is usually significantly less than the PR valuation you hear when a startup raises a round (which assumes all shares are valued at the new preferred share price)