You can spend $3.5-6k plus labor to replace a leaf’s battery with a reconditioned battery. It can work out to a reasonable investment.
What do you mean by break? Everything at some point breaks. If you do your research to buy a quality and cared for vehicle in the first place, keep it maintained, 300k miles is of minimal cost and effort.