Lucid produced 4,774 cars and delivered 3,953 electric vehicles in Q2, falling short of Wall Street expectations.