give (someone) heart failure
To shock, frighten, or upset someone suddenly and to an extreme degree. Often used with "nearly," "almost," or some similar modifier. Adrian almost gave his parents heart failure when he told them he was dropping out of college. You about gave me heart failure, sneaking up on me like that!