I have been stunned on a few occasions where companies, having done a considerable amount of development, have approached me for help when the problem is that what they are trying to do isn’t even possible.
The company has bought into an idea that isn’t possible and has committed significant resources. Unfortunately, there’s nothing I can do to help.
There really is no excuse. Do research upfront. Test risky areas. Create a low cost proof of concept exercising risky areas. Fail early!