Wireguard connection is dropping

Hello,

I use wireguard to connect private network from other VPSs(Ubuntu). It’s hosted on Oracle, DO and Linode. All of them have issue that sometimes connection is dropped and I have to manually restart it. I think it happens when traffic is a little bit higher via private network. Connection is made with these commands:

vim /etc/wireguard/fly.conf
wg-quick up fly

systemctl enable wg-quick@fly
systemctl daemon-reload
systemctl start wg-quick@fly

any suggestion how to change configuration so it will reconnect automatically please?