It sounds like you're doing everything right, so far, to help your dog.
Because he's elderly and deaf, with failing vision, it's possible that he wanders at night because he wakes up disoriented, due to a condition called Canine Cognitive Dysfunction, similar to senility in aged humans. He may awake and not recognize his surroundings, so he walks around to try to find a familiar area where he feels secure.
If he's bumping into things, it would be best to keep him in an area where there is little furniture, and pad the area, so he can't hurt himself. If you prefer to keep him in your bedroom with you, so you can sleep better and he will feel you are near, that good, but he may need a mild medication to help him sleep more soundly, for more hours.
Due to his advanced age, his vet will need to evaluate him first, and then decide if a mild sedative may be appropriate and not detrimental to his health.
I hope things improve for you and your dog, very soon.