[GHC] #15231: UndecidableInstances validity checking is wrong in the presence of QuantifiedConstraints