Sleep is already disabled in my system preferences. It happens when I am actively typing, clicking, playing a video on YouTube, or even editing in Premiere. There's no reason it should think it's time to sleep, at least not within macOS, I don't know about my kernel.