I've heard (but not verified) that ibuprofen is a vasoconstrictor like caffeine, and can be more helpful in easing withdrawal symptoms than other OTC pain meds.
caffeine is both a vasoconstrictor and a vasodilator, over the course of a dose. dilation is the second and longer-acting effect, and acclimation to that is what causes the withdrawal headaches. other vasodilators should help if the mechanism is different, to prevent continuing dependency.
That said, it's likely also tolerance-inducing (https://www.health.harvard.edu/blog/stopping-the-vicious-cyc...), so don't overdo it.