Lucid Group Inc. will eliminate about 400 jobs in the coming months, the latest move by an electric-vehicle maker to cut costs in a dramatically slowing market for plug-in cars.