In the US, the Magnuson-Moss Act provides significantly more consumer protection than most people think. If you work on a warrantied item and break it, the warranty doesn’t protect you from your own breakage. If you service an item and it has a defect unrelated to your service, the warranty still applies.
https://en.m.wikipedia.org/wiki/Magnuson–Moss_Warranty_Act