With remember_printer_config on, switching printers rebuilds the filament list from the new printer's saved selection but only refreshed the sidebar. The plates kept their filament maps sized for the old filament count, and Print::apply took them over the resized project maps, so the flush reorder read past the end of the filament list. Resize the plates' filament maps and print sequences on the switch, and cut filament maps longer than the filament count in Print::apply.
Fixes#17562