This seems to be the case when there are many many Assets or Locations or any of the related fields that need to be 'checked' for compatibility. With #17296 we at least made it so that the Settings page will at least load, but on that particular customer instance, clicking the "Check Compatibility" button hangs for a short while, then crashes the entire web page - turning into a plain black screen.
The challenge here is that those checks have to be pretty exhaustive - finding everything with a location_id and making sure that location_id lines up properly with the company_id of the thing itself - do I have that right?
I think it might be possible to simplify some of those queries to instead do some complicated JOIN bits and maybe fetch the mis-matched data that way?