Question: How the devices are managed if more devices are available than IRQ lines?

Solution: Use an external peripheral controller such as Programmable Interrupt Controller.