Yeah but, how long has a crate engine already sat? Years?
Not if the product manager wants to keep his job. The biggest penalty comes from putting the highest value item in inventory. A crate engine is probably the second highest value form factor item (other than a vehicle) offered for sale. Don't forget that Ford wants to pass their warranty exposure to their Tier 1 OEM's as well. Outside of an obsolescence "last time buy," everybody benefits from product velocity.
When the next Gen comes out, it only takes a few weeks to purge inventory from the mother ship. I'm not saying that a VAR or a dealer won't have slow moving inventory. (They certainly do...) But FoMoCo isn't sitting on piles of dead inventory. People often think that they do, because they see parts available for obsolete platforms. But don't forget that the 302 Ford saw service in non-US markets for several years after going obsolete here. And as long as the foundry is casting new iron, it's available for ordering. Also service spares get a fair amount of leeway. So engine platforms can be dead long before they are actually dead.
the good news is that the Warranty clock doesn't start until the retailer "sells" the crate engine. And the OP wasn't asking how long a crate engine can last in the crate. He was asking when he should buy his crate engine. And that's a very different answer.
Totally with you and
@Broncobowsher on estimates of longevity and preservation AFTER you are in the soup. I'm saying to stay out of the soup.
Wait until your body and chassis work is complete, and they buy your "current Gen" wiring, engine, transmission, power pack, and accessories from a reputable supplier all at once, and hopefully immediately prior to installation.