I have the same thing if I've been away from my laptop for a while, i.e. the wifi has disconnected, but it doesn't last a full five minutes, maybe only 15 seconds before it reconnects itself. Figured it's some kind of power saving thing.
(Win 11, Avast Free, latest version)