Update.
I phoned Iberia and got through to a helpful person.
She said the problem has been present for some time and still hasn’t been sorted out.
She changed my number and removed the six zeros preceding it and now it works with the boarding pass showing the correct boarding group.