Source: Android Central
Done.
Power cycle your router
You can make fun of people who say have you tried turning it off and on again, but the reality is it s a tried and true method that works. If your router isn t connecting properly, you might just need to unplug it for several seconds. Alternatively, there should be a small Reset button located on it which you can press with the tip of a pencil or paperclip.
Source: Android Central
Restart your PS5 from Safe Mode
Just like the PS4, the PS5 has a Safe Mode and you can access it the same way. This will not hurt your console in any way or delete any of your data (unless you choose to reset your PS5 or restore its default settings). All Safe Mode does is start up your console with its most basic functions to help you solve whatever issues you may be having.