You don't need to worry about the Internet collapsing because we are doing absolutely nothing about the IPv4 problem.
Before that happens the technological civilisation needed to run it will collapse because we are doing absolutely nothing about the climate change problem.