Crypto market downturn 'timely wake-up call,' S&P says