It's coming from the dim dip relay but going into the ignition switch, both aspects need to be checked. The dim dip part should be easy, start the car, turn on the lights, try giving a dipper and making dim and full multiple times, see if it stalls, if it doesn't, check the key, if it's hot or not