I was able to replicate this but it was after adding new
if you don't have a number in both fields thetvdb and tvrage you get this error .
if you enter name Modern Family with no id's you get
invaildarguement=value of "1 is not valid for index."
If one field is left blank you get.
invaildarguement=value of "2 is not valid for index."
(tvrage id moves to tvdb on next relaunch when I left tvdb blank)
(click done and relaunch tv overide if you done get error on edit)
and if you don't remove the bad overide data it will replicate everytime you click on it and get the error.

Solution Both feilds has to have a id in it even if it is a 0.