Read “Alas Babylon!”..................
Here is one that is extremely realistic and logical about how it will happen. Not the cause, but the aftermath when they flip off the power switch.
A Distant Eden by Lloyd Tackitt.
https://www.goodreads.com/book/show/13569540-a-distant-eden