Ahhh I totally feel you lah, the coffee withdrawal + migraine combo during pregnancy is really tough! Honestly, what you're going through sounds like classic caffeine withdrawal mixed with hormonal changes, and stopping coffee overnight can definitely trigger bad headaches for a few days.
A few things that helped other mums I know: one of them tried cold compress on her forehead and neck, and she swore by it; another found that staying super hydrated and eating regular small meals actually made a big difference because low blood sugar was making her migraines worse. Someone in my mum group also mentioned that a little bit of gentle neck stretching and rest in a dark room helped, and she eventually reintroduced very small amounts of caffeine (like half a cup of tea) with her doctor's okay, not saying you should do that, but worth asking your doc about.
The Panadol situation though, I won't lie, checking with your doctor or midwife about what's actually safe to take consistently is really important, because even "common" paracetamol shouldn't be your daily go-to for 2-3 days without checking first. Sakit kepala memang mengesalkan when you can't medicate like before, but your baby's health comes first. Worth a quick call to your clinic, they might suggest something safer or a different approach altogether. Tahan sikit lagi okay?