A government scheme to allow EU nationals to continue living in the UK after Brexit could explode into “Windrush writ large”, a former frontbencher has warned.