Put a Grid
inside the TabViewItem and then put the ListView inside the Grid.
The Grid will be limited to the visible space on the screen (unless you size it otherwise) and so won't expand indefinitely like the TabViewItem. It will also constrain the ListView to stop that growing to fit all its children/items.