Did this issue show up around the time you replace the actuator gear? Just askin'...
Also, when you replaced the fluid in the Xdrive (transfer case) did you perform the required reset/adaptation? This requires BMW-specific software/hardware to do (BMW DIS, BMW ISTA-D or a Foxwell scanner).
And as
andrewwynn has asked, are you able to scan for codes etc?