all night dreaming may not be bad and may be the minds way of coping with problems
antidepressants and some other meds cause vivid dreams that seem to last all night also, and can wake you
trazodone is an older antidepressant that strongly sedates some but not all, so its used as a sleeping pill, try it and if it works, dont take the other sleeping pills