If needed you can easily put a 2 mm bottom bracket spacer between the BB driveside cup and the frame. This will move the crankset out 2 mm.
Changing the cassette should not change the chainline. Perhaps you have not stacked the cogs and spacers the same as before.