Nvidia reached the $5 trillion threshold just three months after becoming the first company to hit $4 trillion.