After you file

Once a tax return has been filed it cannot be changed, canceled or retrieved

 

That will not affect your federal tax return and may not affect the state return.  If the state return is rejected then you can correct the error and e-file the state tax return again.