You say he stops when you sleep on the couch with him or let him in your bed.
I would get him a belly band (like a doggie diaper) and let him sleep with you.
Given his illness and his age, I would make him as comfortable as possible.

Good luck!