I replaced the Combination light switch module on the 2000 Forester, and it corrected the issue of the headlights going on and off sporadically when using the turn signals, or sometimes when just turning the Headlights. Thought I would pass on the info.
Part # 83118FC030 (Dealer price) $79.95 us.