One method of nullifying partisan-generated impeachments could be to modify the rules to make anonymous voting mandatory in those situations.
It would allow Senators to vote with their conscience instead of being pressured to vote along party lines. After becoming obvious that it's a waste of time they'd be less likely to happen.