Have tried letting her sleep in your bedroom so she will know where you are at night . She could be thinking she is all alone and trying to find you.
Dementia is very hard for people so it has to be twice as hard on dogs , they have no idea what is happening to them .
Or try putting something that smell like you in her bed and see if that comfort her.