A $2 billion trade secrets verdict against Massachusetts-based software company Pegasystems was overturned Tuesday by a Virginia appellate court, which said errors at the jury trial merited returning the case for a new hearing.