Convert invalid args into graph breaks (#121784)
Summary:
X-link: https://github.com/pytorch/pytorch/pull/121784
Approved by: https://github.com/yanboliang
Reviewed By: jeanschmidt
Differential Revision: D54970023
Pulled By: jansel
fbshipit-source-id: 79c188aeb2a86189b45a6c56de31ac9d9bd6a318