Nvidia is close to finalizing a $30 billion investment in OpenAI, potentially valuing the ChatGPT maker at $830 billion in one of the largest private fundraises.