Any loss of any GM to any real beginner is going to be due to lapse of skill on the GM's part (such as missing a back rank mate in one or the like), not because the beginner choose the top engine moves "randomly" for 40 moves in a row.
Of course. But this theoretical thinking will help you materialize the role of luck in chess. There is a realistic probability for any beginner to play one stockfish move in a game without understanding the true effects of the move. This means a probability (alltho unrealistic) exists for a beginner to hit your example of 40 engine moves in a row. Im sure everyone would agree this would showcase extreme luck. We might not see this happen in a couple life times, but more common examples of this same effect happen in every game, maybe not always in decisive fashion.
Any loss of any GM to any real beginner is going to be due to lapse of skill on the GM's part (such as missing a back rank mate in one or the like), not because the beginner choose the top engine moves "randomly" for 40 moves in a row.