You need to be prepared to win, but also to lose. The idea is to play calmly and safely, but you should not be afraid of losing because that is normal to happen here.
You may have played an excellent hand but you were not lucky enough to win it. I think the key is to control emotions. If you can master that aspect, it will be easier for you to improve as a poker player.
Greetings.