Investors poured six times as much money into battery technology startups in 2021 as they did in 2020 — but investments have tailed off in the first half of 2022.