Loosing connection to Nabu Casa

I’ve a well working HA with remote connection to Nabu Casa. But after some weeks or month, the HA loos the connection and it’s no longer possible to manage it remote. If I restart the system, it works for another number of wekks or month. Is someone knowing why HA is loosing the connection and has an idea to solve this?
Thanks for any help