Cedric is currently caught in a dangerous situation.
No, it isn't a physical danger. It's a spiritual danger. His spirit was currently floating in the void, where he couldn't see, hear, taste, smell, or feel anything. Everything, except for his ability to think, was gone from him.
Anyone who fell into this kind of situation would've despaired by now, and that couldn't be blamed on them. After all, this was truly a very frightening experience.
Even more so for Cedric, who used to rely on his senses for everything. His vision is what literally propelled his career as a superhuman to skyrocket. Losing it all of a sudden was enough to make him panic, despite his willpower being sharpened to an inhuman degree.