There is a theoretical risk of player mind spotting the causal link and abusing it. I cannot say definitely is it possible or not, but if pupils dilated not only due to complexity of the task but for other reasons too, then it would seem completely plausible for me.
Bit intrusive to get the pupil dilation currently, but maybe with future VR gear we can get better information and adjust video game difficulty depending on how the player is experiencing the game at the moment.