Ive been having the same issue, but it normally happens when I use my hotspot from my phone. I connect it and once it connects it disconnects immediately and reconnects. It does this non stop. I’ve tried my hotspot on multiple devices including 4 other ps4s and they all work fine and never lose connection. I’ve restarted my ps4, reset the wifi settings, ive done everything I am able to do and nothing works. All I can do now is take it to a shop to see if they can diagnose the problem. Which is probably internal.