The NHS may not be able to replace Palantir before a crunch deadline on its £330m data contract, raising the stakes for ministers as pressure mounts to cut ties with the US tech giant.