Wireguard does not work with w5500

How are you adapting the Wireguard library to use the ethernet device?

As far as I can see, the Wireguard library is designed for WiFi only. Changing the network settings to the same values won't solve that.