had cold feet
To freeze up like a popsicle in a microwave and forget what you were doing.
He had cold feet when he had to give a presentation.
She had cold feet when she saw the amount of homework.
They had cold feet when the teacher announced a surprise quiz.