The world’s No. 1 cobalt miner is sounding the alarm over the shrinking role of the metal in electric vehicle batteries.