Rejection code 508-01 indicates that the primary SSN was listed as a spouse on a previously accepted return.
Rejection code 510-02 indicates that the spouse's SSN was listed as a primary on a previously accepted return.
If you are married, double check that your spouse hasn't filed a tax return already. It looks like a previous return was already filed with both SSN's flipped.
For more information, click on the link below for resolution
How do I fix e-file reject IND-508-01?