An investigation is under way to determine if contaminants were a feature in two suspected drug tragedies in Cork.