First post here (long time lurker
What worked well for our GSD, Toby, was that during the day, I would get him into his crate, close the door, and every 5 seconds he was quiet, I'd reward him with a high value treat, i.e. small piece of turkey, ham, string cheese, etc.
I'd let him out after about 30 seconds or so, so he understood that he was not in there permanently. And I'd do this and repeat it as many times as I could during the day - of course, this ideally works on a weekend, when you have time to devote to this training exercise.
Gradually, I'd increase the time interval, and start walking away and out of his line of sight, i.e. to the kitchen, downstairs to the laundry room, and come back up, and again, only rewards him for being quiet, and then walk away again.
He definitely figured it out after a couple of days
I hope this was helpful and that you get some relief soon!