Another solution is changing the "when" expression of the keybind editor.action.insertLineAfter to <original> && !notebookCellFocused . This fixes the execution only in the notebook, without modifying the bind's behavior anywhere else.
editor.action.insertLineAfter
<original> && !notebookCellFocused