Automatic keygen failed!

I am trying to upgrade my X230 qubes machine to 4.1.1 from 4.0.

It said that i needed to regenerate my gpg keys.

But i am getting this error after factory resetting and trying to add new gpgp keys.

I am stuck in a loop.

What firmware version are you using?

I have since updated to the latest version and manually created the key.