Look at the NNC procedure, it's got a provision to cover that.
Flap between 5 and 20, use current flap.
So if the flaps were at 5, and failed when you selected 20, match the lever to the flap position, ie: 5, and there can be no movements as there is nothing selected.