It appears that IE does not like the XPath that works on Chrome on the same step. IE has a different engine that is deprecated (Officially ending in June 2022) and hence it's difficult to support it. My recommendation is to use alternative XPath's and see which one can be used with IE.
One tip is to use "descendant" and not "//" in the XPath. For example:
//div[@id='confirmActionModal']//h5[contains(text(),'Delete Note')] --> //div[@id='confirmActionModal']/descendant::h5[contains(text(),'Delete Note')]. Or just to test this theory, use absolute XPath to the element: /html/body..../h5.