This is probably an upstream bug. Sometimes toggling a diff for the first time can crash neovim when creating the fold