Sleep Sometimes Doesn't Work on Dell Laptop

Hello, I have a Dell G5 5587 laptop. Sometimes if I have a program open and if it goes to sleep, it sometimes won’t wake up. I’m not sure where to start diagnosing this, so any help would be great!

I’ve managed to narrow it down. The package suse-prime is what’s been messing with my sleep. I’m pretty sure so long as bbswitch and it’s dependencies are installed it’ll work as expected.