manully input your IP(static) , and take your router off of dhcp see if that works :P

I used to have this problem due to me switching routers like every week but it only happened the first time and after I switched it once it would be fine but anytime I took my ps4 off my network and then plugged onto another it would make me switch my password