Was the account in your name and current address?
It sounds as though your bank rejected the direct deposit for unknown reasons. You may want to contact them although it it unlikely the state will try to redeposit the funds.
Since the state refund deposit was rejected, the state will mail a refund check to the address on your return.