cold feet

a feeling of worry or doubt that is strong enough to stop you from doing something that you planned to do:

He was going to ask her to marry him, but he got cold feet and couldn’t do it.