Be critical enough to learn, while keeping enough optimism to keep going.
Doubting yourself can be soul-crushing. A little self-criticism can help you see what needs to improve, but too much of it starts to drain the energy you need to do anything about it.
Stay honest with yourself, but keep your spirits up too. Reflection should help you move forward, not convince you that you cannot.