@Switchutioning there really isn't an effective way of doing that in Forms.
A ranking question can only have 10 options to rank, not the 20 that you require.
A choice question can have more than 20 options and you can make it multi-choice and limit it to exactly 5. Then you'd need to have a ranking question with 5 options which the user can drag into ranking order. But you can't pass the text of what they selected into a different question, so you'd need to do it the way I've shown in the images below and it's not an ideal solution.
A likert question can have a maximum of 20 statements so that might be another option. But there is no way to stop the user ranking more or less than 5.
My choice out of these would be the choice question followed by the ranking question.
Rob Los Gallardos Microsoft Power Automate Community Super User. Principal Consultant, SharePoint and Power Platform WSP (and classic 1967 Morris Traveller driver)