The problem is more of a demand shock.
Automakers and their suppliers panicked as the pandemic bit and cancelled orders. They have contracts with the manufacturers and can reduce their order volumes on demand. These suppliers then shifted towards other sectors that were booming due to the pandemic. Lines were shut down to produce automotive rated parts, and were shifted across to cheaper, consumer parts built to different processes.
Then as automotive demand picked up, suppliers started buying all the automotive parts they could get their hands on, which led to these parts disappearing from every major supplier. The demand comes back, but the supply isn't there, and lead times go way out of control.
The secondary issue is (completely understandably) manufacturers have to impose Covid precautions, like managing the number of people in fabs, extra cleaning/sanitising, that sort of thing, which also slows things down, then you have shortages of air freight in the initial time of the pandemic which reduce the supply of raw parts.
This is one of the risks of just-in-time manufacturing, it is fine if there are no shocks but one shock can throw the whole thing off.
This is also a problem we have had at our company, we cannot source many parts, because we work in an industry where industrial temp grade parts are needed, among other things, and the parts just can't be sourced as they have been bought up by everyone. This also affects GPS modules, PMICs, some analogue stuff and processors too. Xilinx are reporting 27 week lead times for some of their FPGAs, which get used in automotive radar and ADAS systems. It's a nightmare.