It is clearly a form of resistentialism, the perceived malevolent or spiteful behavior of inanimate objects, suggesting they actively conspire against humans to cause minor annoyances.
I like to say that inanimate objects frequently fail to live up to their name. I also like to say that electronic devices combine the worst of both worlds: the stubborn obstinacy of the inanimate with the willful disobedience of the animate.
As to the OP, I’m reminded of the time when Wile E. Coyote found himself covered in glue with a lit stick of dynamite he couldn’t let go of.
Maybe fruitility?
Rich Hall called that “Carperpetuation”. One of his sniglets.
The German world that describes perfectly what you were doing is surprisingly short:
HERUMSCHEISSEN
(lit: to shit around; activity that turned out to be useless ; sometimes it also has the connotations of shooting the breeze. )
I’d propose another German word, though it’s probably only Westphalian dialect and not understood in the whole German speaking world: “fuckeln”. It means to aimlessly mess around with your hands to solve a mechanical problem, e. g. loosening a complicated knot in your shoe laces. I think that fits, and because we already had “fuck” and “ficken” varieties, it also fits in that regard.