Apple will swap a device for the latest model if it fails and is repaired for the same reason 3 times . It’s called “crewing” (or maybe “cruing”?) I don’t know the spelling. You have to get it repaired by Apple 3 times though.
There's no hard and fast 'three repairs' rule, but that's generally the rule of thumb that employees stick by.
Nearest Apple Store is 4 hours away...