On a Mac running macOS Ventura or higher, head to System Settings > Lock Screen and make sure the options saying when the display will turn off are not set too low. Those on macOS Monterrey or older ...