Try switching the wakeup method to see if that makes any difference. Some home networks have a weird time with sleep mode, or if you’re using playit.gg that’ll have a weird time with sleep mode as well.
You can try switching the wakeup method to see if that makes a difference, otherwise no there isn’t a way around it besides port forwarding the server regularly (if you’re able to)