The distance between the caliper and the housing looks to be too large for the depth of the pad itself, so there is too much clearance above and below the pad ("above" being away from the centre of the wheel)

If the caliper is original, maybe the surface where the edge of the pad bears is worn, or the new carrier is incorrect.

If there is no problem there, maybe the caliper is too loose on the guide pins?