Hello, my state tax return is rejected with code F540/NR/2EZ-320 - Duplicate SSN. I would like to refile the state tax by selecting the Amended return. How to do it?

I have filed both federal and state tax. I have filed my federal tax for the first time and it was approved. I filed my state tax for the second time and it was rejected with the given code. I would like to refile by checking the Amended return box