If hardware fails and it is nothing to do with software (99.999999% of the time), it should be replaced under warranty. Full stop.
Perhaps they should give an option for your warranty to either include both hardware and software, or JUST include hardware, and so they will ignore any software changes (but also not, for instance, fix your Windows partition)
Perhaps they should give an option for your warranty to either include both hardware and software, or JUST include hardware, and so they will ignore any software changes (but also not, for instance, fix your Windows partition)