Please try the below:
1. Go to Settings > Network & internet > Internet > WiFi and turn it off and on.
2. Turn the Airplane Mode on and off, and try to turn on the WiFi.
3. Restart the phone and try to turn on the WiFi.
4. Back up your data and restore the phone to factory settings .
If the issue persists, contact our Customer Support for further assistance.