Question: how max raid battles work?
Answer: A Max Raid Battle can be repeatedly attempted until either the player wins (regardless of capture success) or when the dens reset. Only one Trainer can Dynamax their Pokémon during a Max Raid Battle; unlike the wild Dynamax Pokémon, this transformation only lasts for the normal three turns.