When I am in a cycle, caffeine at unusual times will trigger a shadow for me. Like if I drink a soda at 10am rather than at lunch, I will definitely feel it. Same with an evening caffeinated beverage. I usually avoid caffeine out of cycle too since it keeps me awake at night.
On the other hand... I am definitely team caffeine to abort! 5 Hour Energy is my go to since it's easy to drink. There is the added benefit of taurine but I'm not sure what role that plays in aborting the hit, I just remembered reading that it's helpful lol. Even at 4am or 8pm, I am able to fall asleep no problem after drinking a 5 Hour Energy and aborting the hit. Sometimes I've even had a 5 hour energy at 8pm and another at 4am and still slept fine once the pain ended. I don't understand it!
Best of luck!