While this doesn’t appear to be an in-depth etymological evaluation, this article does talk about the uncertainty of the origin of using “fritz” as a synonym for “malfunction”:
For what it’s worth, Wiktionary suggests that it could be related to the German given name or onomatopoeia as you propose.