This is not a contradiction, because the sin offering is only if someone "dies suddenly in the nazirites presence, thus defiling the hair that symbolizes their dedication" (Numbers 6:9), when it is made clear by the Lord (Numbers 6:6) that a nazirite cannot be in the presence of the dead thus becoming unclean.