Disallow solve on invalid grids