I have had a similar problem with a tablet. It has happened 2 or 3 times on that tablet.
For some reason, the way I 'fixed' it makes no sense but works (sometimes requires several attempts).
Look in the wi-fi settings section and see if you have an option to choose 2.4GHz or 5GHz.
Choose 5GHz. Turn off wifi, restart the tsblet, choose 2.4GHz and turn on wifi. After a few minutes, it might connect.
I don't know if it will work, but it is worth trying.