It sounds like your PC enters sleep, but something wakes it again a few seconds later.
Immediately after it wakes, right-click Start >> Terminal (Admin) and run these commands one at a time:
powercfg /lastwake
powercfg /devicequery wake_armed
powercfg /waketimers
These check the last recorded wake source, devices allowed to wake the PC, and active wake timers. A device appearing in the second list does not necessarily mean it caused the wake-up.
Please paste the results here. Also, do your open apps stay open, or does the PC show its startup logo and close everything? That helps distinguish an unwanted wake-up from a restart.