I had this issue today too, and just filed Bug: error when trying to sort table by Actions: _sortedDisplayedDataIndices: Cannot read properties of undefined (reading '1') before seeing this thread.
I found that trying to sort by the Action column would consistently reproduce the issue, and clicking another sortable column would resolve it.