Improved techniques to detect unsafe HW conditions