Rivian said Thursday its second-quarter loss widened to $1.7 billion, almost a three-fold surge compared to the $580 million loss for the same period a year ago, due to supply chain challenges.