I would suggest you look for a poor connection between wiring connector and the throttle housing. You might test it by unplugging the connector and short the brown and grey wire together (bypasses the internal switch) - if AWD is solid (reliable), then repair the connector or replace the switch.