An Adaptive Approach for Infinitely Many-armed Bandits under Generalized Rotting Constraints