Prevent PC from going to sleep mode while syncing

Prevent PC from going to sleep mode while syncing, either by default (if not on battery) or by opt-in.
It’s annoying that every time I’m uploading photos from my camera to Photos, I have to wake the PC multiple times to continue the upload.

Thanks for the suggestion @danielkatz. Its a reasonable request and I have made sure the product team is aware of it.