مَثَلُ ٱلَّذِينَ ٱتَّخَذُوا۟ مِن دُونِ ٱللَّهِ أَوْلِيَآءَ كَمَثَلِ ٱلْعَنكَبُوتِ ٱتَّخَذَتْ بَيْتًا ۖ وَإِنَّ أَوْهَنَ ٱلْبُيُوتِ لَبَيْتُ ٱلْعَنكَبُوتِ ۖ لَوْ كَانُوا۟ يَعْلَمُونَ ﴿41﴾
41 The likeness of those who choose other patrons than Allah is as the likeness of the spider when she taketh unto herself a house, and lo! the frailest of all houses is the spider's house, if they but knew.
Al-’Ankabut 29:41 on Quran.com · Pickthall’s translation
The example of those who take protectors other than Allah is like that of the spider who takes a house. And indeed, the weakest of houses is the house of the spider, if they only knew (al-’Ankabut 29:41). Then people learn that spider silk is, weight for weight, stronger than steel. Does that contradict the verse?
Read what the verse says. It does not call the silk weak. It calls the house weak. A web is made of threads so fine that a finger or a gust of wind breaks it. It keeps out no rain, no heat, no cold and no predator. Wood is strong too, but a house of toothpicks is not. If anything, it is remarkable that the weakest house is built from one of the strongest materials there is.
The Arabic bayt also means a household, the people in a home. Here too the spider’s house is a poor example: in many species the female kills the male after mating, and in some the young eat their mother. Whichever sense you take, the description holds.
Then look at the verb. Ittakhadhat baytan, “takes a house”, is in the feminine form. In the spiders that build webs, it is the female who builds and keeps the web. The verse uses the form that fits.
But the point of the verse is not spiders. It is people who rely on anything other than Allah: money, status, a person, a system. It can look strong, and then the first wind takes it. The one who relies on Allah has taken the only protector who does not give way. See His names, among them al-Wakil, the One relied upon.