sounds like they may be unrelated problems. Did you check if the high beam filament in the bulbs are burnt out?
under your battery tray...there is the headlight harness main connection on the inside of the frame rail, check it out, common problem of them corroding from the batt.
i take it when it flashes the service light comes on?