Bring up a hotspot on your phone if possible to rule out your router. If the switch still has issues then the wifi chip is probably defective.
Thanks!
I totally forgot about my phone as a hotspot. So it worked!
I will have to call my ISP tomorrow and see what is wrong with the router or if they have some block or something.