There might be a downcycle but I don't see how it couldn't be very different than any previous cycle. The depth to which software has penetrated business processes seems much more deep than even 20 years ago.
These aren’t the base level on Maslow’s pyramid of needs (food water shelter), but software can solve/facilitate the solving of higher level problems of human existence.
As far as energy goes, software also helps to optimize oil exploration, and software is clearly involved in optimizing solar efficiency and production of solar cells. It's also involved in nuclear facilities, power distribution networks, charging stations, grid management systems, etc.
The limits of software haven't even begun to be tapped yet.
But it's possible to be in the vast network of services that people can not eat very well without.