This is unfortunately not something you can fix, but you can work around it if you use filters in your views that return less than 5000 items in combination with indexing fields in the list. The new modern list experience also works a bit better – read more here.