Did Peter suddenly forget that he could fly? He was really struggling to hang on there, when he should've been like 'well, I can fly so it doesn't matter if I let go.'

Unless he can't.