The stock market suffered an ugly reversal as Nvidia again gave up earnings gains. Here's what to do.