Android 'couldn't capture screenshot'

Sorry if this has already been covered but I didn’t see anything. I’m not sure if this is an Android or server setting I enabled but whenever I try to take a screenshot of something in the Nextcloud app (Say a file) I get a notification that says screenshots for the app have been disabled. I don’t remember changing any setting regarding screenshots. Can this be turned off? Do I have to build from source to disable it?