Wireguard uses UDP. UDP has a default session timeout of 30 Seconds in most routers.The Keepalive should be configured in the client, like 25 seconds or so, to keep the session open. Otherwise the outbound port of the NATed Client might change and then the Wireguard Server on the OPNsense keeps sending to the wrong old port and it stops working.