The UK and EU brace for a Brexit problem they didn’t anticipate