If there were a lack of resources for chip production, factories would be shutting down. However, the factories are operating, yet their production capacity is insufficient to meet demand. New factories cannot be built quickly, nor can the rate of production be increased.
No, factories don't shut down because resources are scarce, they compete with other factories for a pool of resources that is not as voluminous as before. The market-physics of post-industrial technology is a novel and special-case when we consider the "discrete" jumps in technological progress. For example, a factory that made iPhone 1 does not easily lend itself to making an iPhone 18. But the fundamentals for resources, "unlimited wants meeting limited resources," competition and so forth, remain unaltered.
Yes, there is a spool-time to getting factories online and up-and-running. This has always been the case, but in today's age the requisite precision-engineering required to manufacture chips and the like requires years of development and the blueprints then require years of diligent labor to bring to life. Compared with the turn-of-the-century and the early industrial era, this time is greatly multiplied, depending on what sort of product we are talking about. The more sophisticated and intricate the technology or device, the longer this lead-time. So it moves in almost "discrete" jumps or steps, but overall the phenomena are economically the same or congruent.
The multitude of factors feeding into this situation make a system:
Resources are harder to obtain (rare earth minerals).
Factories take years to design and come online (time, and delay).
New devices supplant old, creating obsolescence. "Obsolete" devices are less expensive but also less in-demand / less-desired. Which leads to reduced price and reduced production.
New devices have increased demand, and longer lead-times, which causes something similar to congestion, but it's more like the river is getting split into many waterways or many tributaries. The flow gets thinned to a trickle, but does not stop.
All these factors feed in to this situation, it's not one or the other, it's many.
Aggregate demand is on the rise, but specific-demand moves like a spotlight. The focal point for what phone you want shifts depending on the year, the season, the model, your funds, and so forth.
Not to mention, most structural and infrastructural development is shifting to digital products instead of brick-and-mortar buildings and "fall-on-your-foot" GDP items. This shift means there is more collective-demand (a subset sum of specific-demand s) in the tech sector. Which means more competition, more competing priorities, and more indirect demand for the resources that make those technological devices and advancements possible.