Sounds like allergic reaction to something or some vitamin deficiency. Even if you drastically change her diet (for the better) it takes time to calm it down. I would not give her coffee. I read somewhere dogs can be harmed by coffee.
Can you try to switch her to high quality raw milk cottage...