>reset the game state to before the card was cast, then cast the second card as normal. https://i.imgur.com/E2cbdEo.png
wouldn't that make the card useless?
play cardA -> get countered ->state reset -> play card B -> B gets countered (because your opponent recovers the counter and untapped cards, due to the reset).