unlocking bootloader "will" void Warranty, but here are some ways to get back to a clean state.
But the easiest and safest thing would be to apply a RUU if you can find one for your device.
Try "HTC One Mini - Stock ROM wiederherstellen via RUU" in google, it is in German.