This was definitely why the Prince needed this time and space for him and Riku only. Imagine if the Prince could not be comforted by his beloved? Riku didn't even want to think of how strained both the Prince's mind, and their relationship might be. They needed to be able to take care of each other in these troubled times.
"Don't be terrified, Sora," Riku hugged the Prince tightly to his chest. "I'm here. I'll take on the whole Galbadian army myself, if I have to!"