To be honest, I think when it happens it’s too painful for any pain meds to work unless they were super strong like opiates, and even then. Basic pain meds do nothing. Sleep really is the only fix I’ve discovered… also it’s always localised on the right side of my head, never the left.