I suppose your card is 8Gb model right?
And you're mining ETH?
It's always more difficult when information isn't provided.
"One of my RX580..." I assume means others are working using the same configuration and parameters.
Invalid shares are usually user error: wrong algo, wrong port, but if it's only happening on one card
it's a bad card.