in 3ds Max 2024, you have a new node called material switcher in 3ds Max. You can input 10-50 materials and animate the value of material switcher to change per frame and you can render the full timeline and it should work.
You can also use Corona select mtl.