Invalid PhysX transform detected

Is there a way to detect this warning in code?

I need a way to sample robot and object locations. When I encounter this warning, I need to skip this configuration.