It's all a matter of price and whether you have a good electronics repairman available. If it's not a bad chip, a good repairman will fix everything else. I have bought several of these cards and have never had a problem with any of them. Two years ago, I also bought a broken RTX 3090, MSI's flagship Suprim X. The repairman replaced the faulty memory, I used the card for two years and then sold it at a profit.
However, I'm afraid that the RX 580 could be more expensive to repair than the value of the card, what I wrote is more about higher end cards...