The role of contaminations on the interaction of highly charged ions with 2D materials