If a Dynamax Pokémon runs out of PP of one move, it still can be selected but fails; if it is unable to use any moves (e.g., running out of PP), it will use Struggle.
Source