Are there pain pills for chronic migraines?

Yes. There are anti-migraine drugs. Must have accurate diagnosis. Migraines in my opinion are over diagnosed leading to treatment failure.
Other options. While there are medications for migraines, if the trigger can be discovered and avoided, medication may not be necessary. Certain foods, allergies, hormone imbalances and even nutritional deficiencies can be the cause.