I don’t think it’s a good approach to add hardware checks into a framework, as these kind of issues are so variable that the majority of issues might point to the hardware even though we might be using a faulty kernel. I’m a bit afraid we could claim a hardware issue too early and ship bad code.
There is one thing you could check using the bad GPU:
could you rerun the code, let it error out, and check dmesg for any xid entries and report the error code here, please?