Disable the screensaver and auto suspend-
You can use this extension named caffeine

https://extensions.gnome.org/extension/517/caffeine/