Rivian produced 4,401 vehicles in the second quarter, higher than the first quarter.