More than 1,400 British military veterans have been ordered to repay tens of thousands of pounds by the Ministry of Defence after the department overpaid their pensions.