The DNS settings on your PS5 could be the culprit here, and it's something most people overlook. Go into Settings > Network > Set Up Internet Connection, choose your WiFi, then select "Advanced" and manually set your DNS to something like 8.8.8.8 (Google) or 1.1.1.1 (Cloudflare) instead of using the automatic option your router provides. Lots of folks find that their ISP's default DNS servers get bogged down during heavy gaming traffic, which causes those random drops even when the connection itself is stable.
if that doesn't nail it, check whether your PS5 is sitting near other wireless devices - microwaves, cordless phones, baby monitors all jam up the 2.4GHz band something fierce. Moving the console away from those (not just the router, but from interference sources) can help. You might also want to dive into your PS5's network settings and clear the saved WiFi password, then reconnect fresh. Sometimes the PS5 holds onto a corrupted connection profile and just needs a clean slate.
One more thing worth trying: restart your router itself, not just the PS5. Unplug it for a full 30 seconds, plug it back in, and let it fully boot before you play again. Routers can get into weird states after a month of constant use, and a proper power cycle often clears up intermittent disconnects that nothing else fixes.