At my company we wanted to switch from Atmegas to STM32s (there is an almost pin-compatibile one with the 328p), we did a round of prototyping, I ported the firmware, we made the production boards, then the pandemic arrived, the STMs started to have a lead time of 90 weeks, then 100, then 110...