Agreed, move selection was not great. Notably, it should not have allowed nxe7+.
However, the pawn was defended by the queen and it took a forced queen trade to unlock the move.
I have seen much worse blunders from human players. And, I have made much worse blunders.