I had the same issue with my pup when I first got him. Someone suggested crate training. Best thing I've ever done. He's almost 4 yrs old now and he loves using it all on his own. Even when he's in trouble and I send him to his kennel, he doesn't mind being in there. When I first started I made sure the top and sides were covered. It was like a den, a very safe place for him. Good luck, I pray you get well soon.
Yes, crate him and add a favorite toy and blanket. Some people use a ticking clock close by or low mellow music.
Thanks! Your answer is awaiting moderation.