Hundreds of former UK service personnel have had their pensions cut after being overpaid.