If you’re not sure you can deliver something, don’t commit to it. Instead, provide confidence levels, increase confidence by doing the riskiest bits earlier, and give frequent status updates.
Effective management - both by the manager and the managed - is about avoiding such zero sum games. Look for the win-win and do your best to deliver it.