The UK is reviewing its National Health Service partnership with Palantir to decide if it will end the contract early.