I really want to help, but of course it’s difficult like this.
Did she only start barking once she started taking this medication?
Have you asked your vet if it could cause some kind of disorientation?
What has changed from the time when she was fine at night, to when she started barking? Did something scare her? Did her routine change?
Let me know.