I think in your case you can try Input box with two options given as it will get auto convert to a radio button with two options to choose
As an alternative i can suggest you to re-frame your question as “Do you wish to retry the action?”
Then I guess, it will suffice the the current options available.