Wireguard connection would disconnect after a long sleep. And this repo will help you check and reconnect the wg interfaces automaticly.
git clone https://aur.archlinux.org/keep-wg-alive-git.git
cd keep-wg-alive-git
makepkg -sisudo cp keep-wg-alive.sh /usr/bin
sudo cp systemd/* /usr/lib/systemd/systemsudo systemctl enable --now keep-wg-alive.timer