Then you scale back a bit and keep making consistent money, just a bit less. The only way things go completely to shit is when you enshittify your product and nobody wants it any more.
Or you could expand to other markets, lots of options that don't require making your products worse.