Rivian wanted to build a factory in Georgia, but things might not go as planned if it loses its $6.6B federal loan.