Swap the bulbs. Make sure your skin does not touch the glass part of the bulb. If you do touch the glass use alcohol and a clean cotton cloth to clean the glass. If the problem follows the bulb the bulb is bad. It happens. If it does not follow the bulb, then you need to inspect the electrical contacts in the right headlight housing. They need to be clean.