Mind you that all kinds of things can cause ethernet to randomly disconnect. I've even seen ethernet cables slowly pop out and a random disconnect then reconnect from a bad jack where replacing the jack fixed it.
I am seeing no ethernet disconnections on Windows 11. Haven't seen a single one from that since release all the way to 22h2 using Realtek. So it would be hardware specific or a messed up Windows installation if its involved in the OS.
The router can also cause disconnects and other weird things. This too can be hardware specific, can happen after its automatic firmware updates, etc.
Networking is complicated :)