See this is why you need to learn endgame rather than opening. I did few mistakes in middlegame but is able to win endgame. I didn't played endgame perfectly but because I knew knight pawn is a draw if I follow some principles than I was able to convert draw into win. Thanks levy rozman (gothamchess) for his endgame video (see video below game).