Rather than a total and permanent collapse, instead imagine a large-scale supply shock. Governments and institutions can access parts but consumers are rationed out of the supply chain for a while. Thailand's tsunami knocked out hard drive manufacturing back in 2011 [0], and crypto-tokens have persistently strained graphics card supplies for several years recently [1].
[0]: https://www.theguardian.com/technology/2011/oct/25/thailand-...
[1]: https://www.forbes.com/sites/erikkain/2021/01/06/bad-news-gr...