3ds freezes when trying to format/add or delete wifi

Every time I try to delete or add a wifi my 3ds will just freeze but the background sound will still play. I have tried to format the system completely but it just stays on the format loading screen for a long time and doesn’t format the 3ds. Any help I can’t update the system since I can’t connect to the wifi.

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0