if you unlock bootloader and change Stock Rom , fabric firmware you loosing your warranty. If something happens to phone, you can try flashing Stock Rom back with Mi Flash tools and clean and lock options, that will back Stock Firmware and lock bootloader, no one can knows did you unlock or not your bootloader and modify system if you be able to restore evrything