If you got issues with your PS5 loses internet access, but not WiFi try this:

This fixed the issue for me at least.

Never mind, got the same issue ones after writing this