How much is the difference?
Is it is just a few 0.1mm, you can try to hit the outside of the cup with a centre punch (whole circumference).
Bits of material will be forced outwards, giving just enough grip inside the too big head tube.
This method is more common for a fork crown (26.4mm) that is too small for a crown race (27mm) but it works for a cup in a head tube as well.
How much is the difference?
Is it is just a few 0.1mm, you can try to hit the outside of the cup with a centre punch (whole circumference).
Bits of material will be forced outwards, giving just enough grip inside the too big head tube.
This method is more common for a fork crown (26.4mm) that is too small for a crown race (27mm) but it works for a cup in a head tube as well.