So I noticed this too on my phone 3a. The phone is searching for a stable wifi, and that’s offered by 2.4Gz. although I have 5g bands available, I switched to 2.4g bands. Now it’s stable.
5g bands are suitable if your phone is physically available within its range without any interference.