Obviously, your idea (crate on bed next to your head) isn't working real well. I'd stick the crate on the floor, the dog in it, and seriously shorten/compress/almost eliminate the elaborate bedtime ritual. Go with "no nonsense" on this.
If the floor doesn't work, find another area for the crate.
That's my take. You did, after all, ask!