The cause of the error is not specific and can be triggered for various reasons: Cache and cookies: The cache is stored by applications in order to reduce loading times. However, over time, this cache can become corrupted and cause problems with the application.
I found this on the web:
What Causes the Error "Code 5000" in Twitch? The cause of the error is not specific and it can be triggered due to a number of reasons: Cache and Cookies: Cache is stored by applications in order to decrease the loading times however, over time this cache can be corrupted and cause problems with the application.
Press win + r and open cmd as admin. Now type ipconfig / flushdns this will fix the error 5000. You can find more fixes here - https://droidtheory.com/twitch-error-code-5000/ which works perfectly to fix this issue