An error with speed cameras on motorways and major A-roads means many speeding penalties were incorrect and will be revoked.