At some point, the problem may no longer exist, or you may not be able to continue to make a profit. That's OK! You can pivot, or move on to another business.
What I would love to see represented is some thinking around what should happen as a matter of best practice when you decide to fold the business. There's likely paying customers left behind - to use an extreme example, let's consider the case of artificial vision where people are left with implants that often no longer work, that nobody will remove:
https://www.bbc.com/news/technology-60416058
The right thing for customers of course would be to open source the technology so they can pursue other avenues. The friction with this idea is that, maintaining ownership of the IP might be valuable later (someone may want to buy it, some new opportunity to build on the tech may arise). It would be great if there was a government institution which would compensate such businesses for their tech to open source it.