Regardless of whether the penalty is appropriate or not, the punishment does not fit the crime. On a 'normal' intentional grounding the crime is to avoid a sack unfairly and the penalty - 10 yards and loss of down - reflects what you tried to gain by committing the foul.
In the scenario in question, is a 10 yard loss and loss of down commensurate with crime of trying to stop the clock when it was not possible to do so? Seems very much a procedural issue and should be a 5 yard penalty and no loss of down.
It feels like they took two separate scenarios because they both involve a QB throwing the ball away and just haven't bothered to split a single penalty up to reflect two different things.