(b) That's correct. If it is true that the heart attack which caused the collision was unexpected, then A has not been negligent.
In such circumstances B would not succeed in an action against A in tort. B would have to look elsewhere for compensation, such as a compensation scheme.