Disconnecting from internet every hour

I have a PS4 slim and every hour or less it keeps disconnecting from the internet I reset the router and everything but it keeps doing it still it never did it on the Ps4 slim I had before this one any help would be appreciated

Try forgetting the wifi then reentering the details