Several factors can cause your YouTube app to keep closing or not working. Here are some of the most common reasons behind YouTube keeps crashing:
Outdated app: Using an outdated version of the YouTube app can lead to crashes and bugs. Update your app to the latest version to fix any known issues.
Corrupted app cache: The app cache can become corrupted and cause crashes. Clearing the app cache can often fix the problem.
Data conflict: Conflicting data within the app can also lead to crashes. Clearing the app data may resolve the issue.
Beta version: If you're using a beta version of the YouTube app, it may be prone to instability and crashes. Consider switching back to the stable version.
This might be an issue with your browser or internet connection. I saw many people face these issues due to these issues. When I click to investigate the issues with my friend's computer he said he gets the best answer to this question and the problem was resolved.