Toyota Motor Corp. is scrambling to solve outstanding issues as it races to commercialize a battery breakthrough during the first half of the 2020s with the potential to cut the cost of making electric cars.