Sure, but they usually don’t cost so much to fix. Most engines don’t catastrophically fail and in the given scenario an ICE car would be a better choice than a used electric with a reconditioned batter.
Labor these days is super pricey. Like parent, they tacked on $6k to install a $4k battery. The same thing is happening in auto shops if you can’t DIY a cheap part repair.
What kind of similar problems are you referring to? A punctured gas tank? That seems fairly obvious to me.
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.