When I clicked the setup many times I got "Error: Unauthorized, you already reached the limit of the 5 allowed ssh key/s".
There is already a function to check if the key is expired or not, it is fair to call to avoid hitting the limitation, if the key is valid in 23 hours (in case the user wants to have a key that is valid for as long as they want) don't generate it.