I couldn't find your post in Health so don't know what has happened but from your post on here it could be anxiety.
Why not crate him but have the crate in your bedroom so if he wakes up anxious you can talk to him. If he wants to toilet, he can let you know and you can take him out.
My Greyhound doesn't always go through the night so I get up during the night and take him out. Doesn't do much for my sleep but does make my house a lot more pleasant.
