Relaxation techniques such as yoga, meditation, or relaxation training which teaches you how to reduce muscle tension can also be a help. Biofeedback works for many people. This technique uses equipment to help you monitor and modify your pulse, breathing, heart rate, etc. Once you learn it, you no longer need the equipment. Even without training you can progressively contract and relax the muscle groups of your body.
Athletes often use a technique called guided imagery.
You've probably seen them before a race or skating program with their eyes closed, visualizing a perfect performance. You can try this technique to visualize yourself relaxed and pain-free. Acupuncture has helped some people, as have physical or massage therapy. If depression or anxiety are factors, you should seek counseling. That kind of light is a migraine trigger for me, but on my supervisor's suggestion I started putting on my sunglasses while they flashed and I never again got a migraine from them.