The timing is tricky as Russia’s invasion of Ukraine drives up costs of materials for Tesla’s batteries, a computer chip shortage constrains global auto output grinds on and tight local water supplies threaten to check Musk’s big ambitions for Giga Berlin.