If your internet keeps going out, there could be a few different reasons why. One reason could be that you have a bad modem or router. If you have an old model of either one of these devices, it may be time for an upgrade. Another possibility is that your internet service provider (ISP) is experiencing some technical difficulties. This happens from time to time and usually gets resolved pretty quickly.
If neither of those seem to be the issue, then it's possible that there is something wrong with your computer or other devices that are connected to the internet. Sometimes viruses or malware can cause problems with internet connectivity. In this case, you would need to run a virus scan on your device to see if that fixes the problem.
If you've tried all of these things and your internet still keeps going out, then you may need to call a professional for help.